Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- void main() {
- int ord,x;
- char str[256];
- gets(str);
- for(x=0;x<strlen(str);x++) {
- ord = (int)str[x];
- if((ord >= 97 && ord <= 122) || (ord >= 224 && ord <= 252))
- str[x] = ord-32;
- }
- printf("%s",str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement