Update du1/program.c
funguje uz
This commit is contained in:
parent
404c6ff14a
commit
e117db2aca
@ -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