Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- char ch;
- int res;
- while(1)
- {
- res = scanf("%c", &ch);
- if(ch == 10) break;
- if((ch>=65)&&(ch<=90)) ch+=32;
- else if ((ch>=97)&&(ch<=112)) ch-=32;
- else ch=ch;
- printf("%c", ch);
- }
- putchar('\n');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement