test
This commit is contained in:
parent
e117db2aca
commit
c381ecc03f
21
a1/program.c
Normal file
21
a1/program.c
Normal file
@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
|
||||
int c= 0;
|
||||
while(1){
|
||||
|
||||
c = getchar();
|
||||
if (c < 0) break;
|
||||
|
||||
if (c >= 97 && c <= 122){
|
||||
c = c - 'a' + 'A';
|
||||
} else
|
||||
if (c >= 65 && c <= 90){
|
||||
c = c - 'A' + 'a';
|
||||
}
|
||||
putchar(c);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user