diff --git a/du3/program.c b/du3/program.c index ae7e86d..210f72d 100644 --- a/du3/program.c +++ b/du3/program.c @@ -15,16 +15,10 @@ int main(){ } for(int i=0, p=1;i='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); + else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); else { printf("Nepodarilo sa nacitat polynom na %d mieste.\n", p); return 0; - } - else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); - else { - printf("Nepodarilo sa nacitat polynom na 2 mieste.\n"); - return 0; - } } int koef=-1;