Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char str[100];
- gets(str);
- int i;
- for(i = 0; str[i] != '\0'; i++)
- {
- if(str[i] >= 'A' && str[i] <= 'Z')
- str[i] = str[i] + 32;
- else if(str[i] >= 'a' && str[i] <= 'z')
- str[i] = str[i] - 32;
- }
- printf("%s\n", str);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement