SAD
This commit is contained in:
parent
f44ae3a4df
commit
fc03c592a4
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user