pvjc24/cv1/program.c

18 lines
273 B
C
Raw Normal View History

2024-02-17 16:49:04 +00:00
#include <stdio.h>
2024-02-15 07:23:00 +00:00
2024-02-17 16:49:04 +00:00
int main()
{
char c;
while ((c = getchar()) != EOF) {
if(c<='z'&&c>='a'){
c=c+('A'-'a');
}else if(c<='Z'&&c>='A'){
c=c-('A'-'a');
}
printf("%c",c);
}
2024-02-22 12:21:51 +00:00
printf("\n");
2024-02-17 16:49:04 +00:00
return 0;
}