diff --git a/du1/program.c b/du1/program.c index dcf97c2..47370ec 100644 --- a/du1/program.c +++ b/du1/program.c @@ -3,39 +3,5 @@ int main() { - int pocetRiadkov = 0; - while (1) - { - int vstup = getchar(); - if (vstup == EOF) {break;} - - if (vstup == '\n') - { - pocetRiadkov += 1; - putchar(vstup); - } - else if (vstup < 32 || vstup == 127) - { - continue; - } - else if (vstup == '\r') - { - continue; - } - else if (islower(vstup) != 0) - { - putchar(toupper(vstup)); - } - else if (isupper(vstup) != 0) - { - putchar(tolower(vstup)); - } - else if (vstup >= 32 && vstup <= 126) - { - putchar(vstup); - } - - } - printf("\nLines_count: %d\n", pocetRiadkov); return 0; -} +} \ No newline at end of file