Advertisement
Mysoft

Untitled

Jun 17th, 2021
1,158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main() {
  5.     char zName[64];
  6.     printf( "name? ");
  7.     scanf( "%s" , (char*)&zName );
  8.     printf( "Hello, %s!\n" , zName );
  9.  
  10.     if (strlen( zName ) > 12) {
  11.         puts("What a big name!");
  12.     }
  13.  
  14.     getchar();
  15.     getchar();
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement