diff --git a/du3/program.c b/du3/program.c index cf8b148..71f72f2 100644 --- a/du3/program.c +++ b/du3/program.c @@ -18,6 +18,7 @@ int main(){ else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); else if(p==0){ printf("Nepodarilo sa nacitat zaklad x\n"); + return 0; } else { printf("Nepodarilo sa nacitat polynom na %d mieste.\n", p);