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; }