From 76e74118e5b60856bc96a3fa2bb7221362fe8dfb Mon Sep 17 00:00:00 2001 From: ak643du Date: Wed, 21 Feb 2024 18:14:40 +0100 Subject: [PATCH] changes --- cv1/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index b2d4a89..c443477 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -14,9 +14,10 @@ int main(){ else if (c == '\n') { line_count++; // Zvýšte počítadlo riadkov na konce riadka } - else if (c < ' ' || c >= 127) { + else if (c < ' ' || c >= 127 || c == '\t') { continue; // Preskočiť značky } + putchar(c); // Vypíš znak } printf("\nLines count: %d\n", line_count);