diff --git a/a1/program.c b/a1/program.c index 1338f20..116d467 100644 --- a/a1/program.c +++ b/a1/program.c @@ -7,24 +7,21 @@ int main() while (1) { int vstup = getchar(); - if (vstup == EOL) {break;} + if (vstup == EOF) {break;} if (vstup == '\n') { pocetRiadkov += 1; putchar(vstup); } - else if (islower(vstup) != 0) { putchar(toupper(vstup)); } - else if (isupper(vstup) != 0) { putchar(tolower(vstup)); } - else if (iscntrl(vstup) != 0) { putchar(vstup);