Advertisement
fouzimedfouni

input a string value

Oct 18th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. main()
  3. {
  4.      
  5.       char Name[50];
  6.  
  7.       printf(" fill the info below please .........:\n");
  8.       printf("the name :  ");
  9.       scanf("%s[^/n]",Name);
  10.       printf("My name is %s\n" );
  11.      
  12.      
  13.       fflush(stdin);
  14.       getchar();
  15.      
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement