Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char c;
- while((c=getchar())!=EOF)
- {
- if(c>='A'&&c<='Z')
- printf("%c",c+'a'-'A');
- else if(c>='a'&&c<='z')
- printf("%c",c+'A'-'a');
- else if(c>'5'&&c<='9')
- printf("9");
- else if(c>='0'&&c<'5')
- printf("0");
- else if('5'==c)
- printf("5");
- else
- printf("%c",c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement