This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:49:59 +01:00
parent dfe5a8664d
commit 811dc69e28

View File

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