This commit is contained in:
Yaroslav Orlianskyi 2022-03-01 18:51:15 +01:00
parent f44ae3a4df
commit fc03c592a4

View File

@ -2,14 +2,24 @@
int main(){ int main(){
int c = 0; int c = 0;
//int big; int a = 0;
char small[] = "abcdefghijklmnopqrstuvwxyz";
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char d; char d;
while( c != EOF){ while( c != EOF){
c = getchar(); c = getchar();
if (c >= 'a' && c <= 'z'){ d = c;
d = c - 'a' + 'A'; int a = 0;
while(a > 26){
if(d == small[a]){
c = big[a];
break;
}else if(d == big[a]){
c = small[a];
break;
}
} }
putchar (d); putchar (c);
} }
return 0; return 0;
} }