This commit is contained in:
Yaroslav Orlianskyi 2022-02-20 13:26:50 +01:00
parent a8aa3f1462
commit 8677defd3f

View File

@ -2,9 +2,19 @@
int main(){ int main(){
int c = 1; int c = 1;
printf("Enter your text\n"); char small[] = "abcdefghijklmnopqrstuvwxyz";
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
while(c = 1){ while(c = 1){
c = getchar(); c = getchar();
for(int i = 0; i < 26; i++){
if(c == small[i]){
c = big[i];
break;
}else if(c == big[i]){
c = small[i];
break;
}
}
} }
return 0; return 0;
} }