pvjc22/du1/program.c
Yaroslav Orlianskyi 4a50937dab SAD
2022-03-02 14:14:37 +01:00

19 lines
250 B
C

#include <stdio.h>
int main(){
int c = 0;
char a;
while(1){
c = getchar();
if(c == EOF)
break;
if (c >= 'a' && c <= 'z')
c = c - 'a' + 'A';
else if(c >= 'A' && c <= 'Z')
c = c - 'A' + 'a';
a = c;
putchar(a);
}
return 0;
}