#include #include #include #include #define SIZE 120 int main(){ char pol[SIZE]; memset(pol,'\0',SIZE); int ch=0; for(int idx=0;1;idx++ ){ ch=getchar(); if(ch==EOF||ch==' ')break; pol[idx]=ch; } for(int i=0, p=1;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; for(int i=0;i