From 55aede05ccb088d3ce1319ee7a847d50b5f64bab Mon Sep 17 00:00:00 2001 From: ct453rn Date: Wed, 21 Feb 2024 14:21:57 +0100 Subject: [PATCH] uloha1 --- cv1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 0d2eb3d..a6595d4 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -2,7 +2,7 @@ int main() { int c = 0; - int pocet_riadkov = 0; + int lines_count = 0; while ((c = getchar()) != EOF) { if (c >= 'a' && c <= 'z') { @@ -13,7 +13,7 @@ int main() { c = c - 'A' + 'a'; } else if (c == '\n') { - pocet_riadkov++; + lines_count++; } if (c != '\n') { @@ -22,7 +22,7 @@ int main() { } // Po načítaní všetkých znakov vypíš počet riadkov - printf("\nPocet nacitanych riadkov: %d\n", pocet_riadkov); + printf("\nLines Count: %d\n", lines_count); return 0; }