From 55136fc05d16562a2ac0614bac934fcb62a6df1f Mon Sep 17 00:00:00 2001 From: ak643du Date: Wed, 21 Feb 2024 18:25:34 +0100 Subject: [PATCH] changes --- cv1/program.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 43c4200..ce1c9cf 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -14,13 +14,12 @@ 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 } + else if (c == '\t') { + putchar(c); // Print the tab character + } putchar(c); // Vypíš znak }