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-01 17:51:15 +00:00
|
|
|
int a = 0;
|
|
|
|
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
|
|
|
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
2022-03-01 17:30:30 +00:00
|
|
|
char d;
|
|
|
|
while( c != EOF){
|
2022-02-20 12:20:20 +00:00
|
|
|
c = getchar();
|
2022-03-01 17:51:15 +00:00
|
|
|
d = c;
|
|
|
|
int a = 0;
|
|
|
|
while(a > 26){
|
|
|
|
if(d == small[a]){
|
|
|
|
c = big[a];
|
|
|
|
break;
|
|
|
|
}else if(d == big[a]){
|
|
|
|
c = small[a];
|
|
|
|
break;
|
|
|
|
}
|
2022-02-20 12:26:50 +00:00
|
|
|
}
|
2022-03-01 17:51:15 +00:00
|
|
|
putchar (c);
|
2022-02-20 12:20:20 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|