This commit is contained in:
Andrii Hermaniuk 2022-03-18 15:01:15 +01:00
parent 1cb2cefad6
commit 0d441e4fa3

View File

@ -16,6 +16,7 @@ int main(){
for(int i=0, p=0;i<strlen(pol);i++){ for(int i=0, p=0;i<strlen(pol);i++){
if(pol[i]=='\n')p++; if(pol[i]=='\n')p++;
else if((pol[i]<='9'&&pol[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 if(p=0)printf("Nepodarilo sa nacitat zaklad x\n");
else { else {
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", p); printf("Nepodarilo sa nacitat polynom na %d mieste.\n", p);
return 0; return 0;