This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:41:54 +01:00
parent 0245b141b0
commit 6ad25f37c1

View File

@ -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==EOF)||(ch==' '));
if((ch<'9'&&ch>'0')||(ch==EOF)||(ch==' ')||ch=='\n');
else printf("Nepodarilo sa nacitat polynom na 2 mieste.\n");
pol[idx]=ch;
}