diff --git a/a1/program.c b/a1/program.c index 4641890..dcf97c2 100644 --- a/a1/program.c +++ b/a1/program.c @@ -14,6 +14,10 @@ int main() pocetRiadkov += 1; putchar(vstup); } + else if (vstup < 32 || vstup == 127) + { + continue; + } else if (vstup == '\r') { continue; @@ -34,4 +38,4 @@ int main() } printf("\nLines_count: %d\n", pocetRiadkov); return 0; -} \ No newline at end of file +}