Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- #include <string.h>
- int main() {
- char s[1000];
- scanf("%s", s);
- for(int i = 0; i < strlen(s); i++) {
- if(isalpha(s[i])) {
- s[i] = toupper(s[i]);
- }
- }
- printf("%s\n", s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement