Advertisement
Guest User

Untitled

a guest
May 4th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main(void)
  5. {
  6. char name[30];
  7.  
  8. printf("Type your namen");
  9.  
  10. scanf("%10[0-9a-zA-Z]", name);
  11.  
  12. printf("%sn", name);
  13. return 0;
  14. }
  15.  
  16. C:Usershackr>g++ -o whitespace.exe whitespace.c
  17.  
  18. C:Usershackr>whitespace.exe
  19. Type your name
  20. John Doe
  21. John
  22.  
  23. C:Usershackr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement