24 lines
499 B
C
24 lines
499 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int text;
|
|
|
|
while ((text = getchar()) != EOF) {
|
|
if (text >= 'a' && text <= 'z') {
|
|
text = text - 'a' + 'A';
|
|
} else if (text >= 'A' && text <= 'Z') {
|
|
text = text - 'A' + 'a';
|
|
} else if (text == '\n') {
|
|
printf("\n");
|
|
continue;
|
|
} else if (text < 32 || text == 127) {
|
|
continue;
|
|
}
|
|
|
|
putchar(text);
|
|
}
|
|
|
|
printf("\nPocet riadkov: 1\n");
|
|
return 0;
|
|
}
|