This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:57:18 +01:00
parent 50879eea8d
commit d8138868b7

View File

@ -15,16 +15,10 @@ int main(){
}
for(int i=0, p=1;i<strlen(pol);i++){
if(pol[i]=='\n')p++;
else if((po[i]<='9'&&po[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;