Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <cs50.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. int main(void)
  7. {
  8.  
  9.  
  10. printf("input name: ");
  11. string name = GetString();
  12.  
  13.  
  14. int start = 1;
  15. while(strcmp(&name[start], " ") == 0)
  16. {
  17. start++;
  18. printf("%cn", toupper(name[start]));
  19. }
  20. start++;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement