Διαφάνεια PPT
printf("Enter values for a,b,c,d,e,f : ");
if ( scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f) !=6 )
{ printf("Error. Expecting six numbers ...\n");
printf("Now enter values for x. Finish with <CTRL-D>\n");
while( scanf("%f", &x) == 1 )
printf("y=%17.4f\nx=", poly_5th(x,a,b,c,d,e,f) );
float poly_5th( x, A, B, C, D, E, F)
float x, A, B, C, D, E, F;
return( A*x*x*x*x*x + B*x*x*x*x + C*x*x*x + D*x*x + E*x +F);
printf("y=%17.4f\n", poly_5th(x,a,b,c,d,e,f) );