#include #include #include #define SIZE_OF_ARRAY 100 int main() { double result_of_main=0; double array_of_numbers[SIZE_OF_ARRAY]; int counter=0; int result; double pow_result; while(1){ double x=0; result=reading_input(&x); if(result==0||result==2){ break; } array_of_numbers[counter]=x; counter++; } if(result==0){ if(counter==0){ printf("Nepodarilo sa nacitat zaklad x\n"); }else{ printf("Nepodarilo sa nacitat polynom na %d mieste.\n",counter); } return 0; } for(int j=1; j='0'&&buffer[j]<='9') { continue; } if (buffer[j]=='.') { continue; } if(buffer[j]=='\n'){ buffer[j]='\0'; break; } return 0; } if(buffer[0]=='\0'){ return 2; } *number=atof(buffer); return 1; }