From f9d5a2149e7c256bf92fc7594cf814c208d6608b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ut=C4=BE=C3=A1k?= Date: Wed, 21 Feb 2024 15:37:18 +0000 Subject: [PATCH] final fix --- cv1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 48d489c..4bb4db3 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -2,12 +2,12 @@ int main() { int text; - int lines_count = 0; + int riadky = 0; while ((text = getchar()) != EOF) { if (text == '\n') { putchar('\n'); - lines_count++; + riadky++; } else if (text == '\t') { putchar('\t'); continue; @@ -20,7 +20,7 @@ int main() { } } - printf("\nLines count: %d\n", lines_count); + printf("\nPocet riadkov: %d\n", riadky); return 0; }