From 3a438d64d10bfb81fa28d5718e2da9535dd1a1a0 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 16:48:12 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index ffa47fc..78e4ead 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -20,8 +20,8 @@ int main() { length = count; - for (int y = 0; y <= length; y++ ){ - if (atof(coefs[y]) == 0){ + for (int y = 0; y < length; y++ ){ + if ( isInteger(coefs[y]) == 0){ printf("Nepodarilo sa nacitat polynom na %d mieste.", y); break; }