diff --git a/du3/program.c b/du3/program.c index d51ec27..6a21432 100644 --- a/du3/program.c +++ b/du3/program.c @@ -11,7 +11,7 @@ int main(){ for(int idx=0;1;idx++ ){ ch=getchar(); if(ch==EOF||ch==' ')break; - if((ch<'9'&&ch>'0')||ch=='.'||(ch==EOF)||(ch==' ')||ch=='\n'); + if((ch<='9'&&ch>='0')||(ch=='.')||(ch==EOF)||(ch==' ')||(ch=='\n')); else printf("Nepodarilo sa nacitat polynom na 2 mieste.\n"); pol[idx]=ch; }