This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:40:38 +01:00
parent ec4a1d2f43
commit 0245b141b0

View File

@ -11,6 +11,8 @@ int main(){
for(int idx=0;1;idx++ ){ for(int idx=0;1;idx++ ){
ch=getchar(); ch=getchar();
if(ch==EOF||ch==' ')break; if(ch==EOF||ch==' ')break;
if((ch<'9'&&ch>'0')||(ch==EOF)||(ch==' '));
else printf("Nepodarilo sa nacitat polynom na 2 mieste.\n");
pol[idx]=ch; pol[idx]=ch;
} }