From 4a19e693a059cda6906bdc67811548e7cb4d0738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ut=C4=BE=C3=A1k?= Date: Wed, 21 Feb 2024 14:44:32 +0000 Subject: [PATCH] prosim --- cv1/program.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index c4628e1..48d489c 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -13,14 +13,15 @@ int main() { continue; } else if ((text >= 'a' && text <= 'z') || (text >= 'A' && text <= 'Z')) { putchar(text ^ ' '); - } else if (text < 32 || text == 127) { - continue; - } else { + } else if ((text >= 32 && text < 127) || text == 9) { putchar(text); + } else { + continue; } } printf("\nLines count: %d\n", lines_count); + return 0; }