From cb587235fc617eafc3941df637147add69393e12 Mon Sep 17 00:00:00 2001 From: Miloslav Macko Date: Thu, 22 Feb 2024 14:26:37 +0100 Subject: [PATCH] 22.2 --- cv1/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index ac20e70..466e1f0 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -2,7 +2,7 @@ #include int main() { - int lines_count = -1; + int lines_count = 0; int c; while ((c = getchar()) != EOF) { @@ -21,5 +21,6 @@ int main() { printf("Počet načítaných riadkov: %d\n", lines_count); return 0; - + +} \ No newline at end of file