2022-02-20 12:20:20 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(){
|
2022-03-01 17:30:30 +00:00
|
|
|
int c = 0;
|
2022-03-02 13:14:37 +00:00
|
|
|
char a;
|
|
|
|
while(1){
|
2022-02-20 12:20:20 +00:00
|
|
|
c = getchar();
|
2022-03-02 13:14:37 +00:00
|
|
|
if(c == EOF)
|
2022-03-01 18:01:36 +00:00
|
|
|
break;
|
2022-03-02 13:14:37 +00:00
|
|
|
if (c >= 'a' && c <= 'z')
|
|
|
|
c = c - 'a' + 'A';
|
|
|
|
else if(c >= 'A' && c <= 'Z')
|
|
|
|
c = c - 'A' + 'a';
|
|
|
|
a = c;
|
|
|
|
putchar(a);
|
2022-02-20 12:20:20 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|