From fa83d0a9a53f9cf5622c0386fffa668b1a59fd21 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 13:36:42 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cv3/program.c b/cv3/program.c index 4f47f48..791b1d7 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -14,6 +14,11 @@ int main() { while (count < SIZE) { if (scanf("%lf", &input) != 1) { if (scanf("%c", &input) == 1) { + if (count = 0){ + printf("Nepodarilo sa nacitat zaklad x\n"); + return 0; + } + printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count); return 0; }