From f4afeeecb0c5e2399a6d7b3437716b2d84d5baf8 Mon Sep 17 00:00:00 2001 From: ak643du Date: Wed, 21 Feb 2024 18:36:38 +0100 Subject: [PATCH] changes --- cv1/program.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 340d906..3930701 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -14,12 +14,13 @@ int main(){ else if (c == '\n') { line_count++; // Zvýšte počítadlo riadkov na konce riadka } + else if (c == '\t'){ + putchar(c); + continue; + } else if (c < ' ' || c >= 127) { continue; // Preskočiť značky } - if (c == '\t') { - putchar(c); - } putchar(c); // Vypíš znak }