123
This commit is contained in:
parent
a8aa3f1462
commit
8677defd3f
@ -2,9 +2,19 @@
|
||||
|
||||
int main(){
|
||||
int c = 1;
|
||||
printf("Enter your text\n");
|
||||
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
||||
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
while(c = 1){
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user