From 084f5743772af967cee12f2fa80641abda1a2ef8 Mon Sep 17 00:00:00 2001 From: Michal Utlak Date: Tue, 5 Mar 2024 19:00:16 +0100 Subject: [PATCH] return values fix --- cv3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 21a9394..3a76d1b 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -17,7 +17,7 @@ int main() { } else if (skenovanie == EOF) { if (zla_hodnota) { printf("Nepodarilo sa nacitat polynom na %d mieste.\n", zly_index); - return 1; + return 0; } else { break; } @@ -30,7 +30,7 @@ int main() { if (opakovania == 0) { printf("Nepodarilo sa nacitat hodnotu X.\n"); - return 1; + return 0; } float vysledok = pole[1];