SAD
This commit is contained in:
parent
f44ae3a4df
commit
fc03c592a4
@ -2,14 +2,24 @@
|
||||
|
||||
int main(){
|
||||
int c = 0;
|
||||
//int big;
|
||||
int a = 0;
|
||||
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
||||
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
char d;
|
||||
while( c != EOF){
|
||||
c = getchar();
|
||||
if (c >= 'a' && c <= 'z'){
|
||||
d = c - 'a' + 'A';
|
||||
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;
|
||||
}
|
||||
}
|
||||
putchar (d);
|
||||
putchar (c);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user