Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. int main(int argc, char **argv)
  6. {
  7. int index = 0;
  8. char c;
  9. char text[512];
  10. while ((c = getchar()) != '~'){
  11. text[index++] = toupper(c);
  12. }
  13. printf( "%s\n", text);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement