Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<ctype.h>
- int main(){
- char c;
- while((c=getchar())!=EOF)
- {
- if(isupper(c)) //A
- c=tolower(c); //a
- else if(islower(c))
- c=toupper(c);
- printf("%c\n",c );
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement