Advertisement
Josif_tepe

Untitled

Jan 16th, 2024
560
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. #include <ctype.h>
  3. #include <string.h>
  4. int main() {
  5.     char s[1000];
  6.     scanf("%s", s);
  7.  
  8.     for(int i = 0; i < strlen(s); i++) {
  9.         if(isalpha(s[i])) {
  10.             s[i] = toupper(s[i]);
  11.         }
  12.     }
  13.     printf("%s\n", s);
  14.     return 0;
  15. }
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement