SHOW:
|
|
- or go back to the newest paste.
| 1 | - | #include "crt.bi" |
| 1 | + | #include <stdio.h> |
| 2 | #include <string.h> | |
| 3 | - | dim as zstring*64 zName |
| 3 | + | |
| 4 | - | printf( "name? ") |
| 4 | + | int main() {
|
| 5 | - | scanf( "%s" , @zName ) |
| 5 | + | char zName[64]; |
| 6 | - | printf( !"Hello, %s!\n" , zName ) |
| 6 | + | printf( "name? "); |
| 7 | scanf( "%s" , (char*)&zName ); | |
| 8 | - | if (strlen( zName ) > 12) then |
| 8 | + | printf( "Hello, %s!\n" , zName ); |
| 9 | - | puts("What a big name!")
|
| 9 | + | |
| 10 | - | end if |
| 10 | + | if (strlen( zName ) > 12) {
|
| 11 | puts("What a big name!");
| |
| 12 | - | getchar() |
| 12 | + | } |
| 13 | - | getchar() |
| 13 | + | |
| 14 | getchar(); | |
| 15 | getchar(); | |
| 16 | return 0; | |
| 17 | } | |
| 18 |