From 5fe30441cf2749611c34bf66727d0abf3c1fbfd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1=C5=A1?= Date: Fri, 8 Mar 2024 08:29:31 +0000 Subject: [PATCH] Update 'cv3/program.c' --- cv3/program.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 73eba79..7f3977c 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -16,15 +16,14 @@ int main() { int count = 0; if (scanf("%lf", &x) != 1) { - printf("Nepodarilo sa nacitat hodnotu x.\n"); + printf("Nepodarilo sa nacitat zaklad x\n"); return 0; - } while (scanf("%lf", &coef) == 1) { coefficients[count++] = coef; } - + if (!feof(stdin)) { printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1); return 0; @@ -35,4 +34,3 @@ int main() { return 0; } -