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

View File

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