diff --git a/cv3/program.c b/cv3/program.c index 216663d..6a3d763 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -15,15 +15,15 @@ int main() { printf("\n x input \n"); break; } - if (count < 2){ - printf("Nepodarilo sa nacitat polynom na 2 mieste."); - } coefs[count] = input; count++; } x = coefs[0]; - + if (count < 2){ + printf("Nepodarilo sa nacitat polynom na 2 mieste."); + return 0; + } length = count; for (int i = 1; i < length; i ++){