/*write a c program to evaluate the given polynomial*/ #include #include int main() { float a[10],p,x; int i,n; printf("Enter the value of x:\n"); scanf("%f",&x); printf("\n Enter n order of the polynomial:\n"); scanf("%d",&n); for(i=n;i>=0;i--) { printf("\n Enter the coefficient of x to the power of %d \n",i); scanf("%f",&a[i]); } p=a[n]*x; i=n-1; while(i!=0) { p=x*(a[i]+p); i--; } p=p+a[0]; printf("\n vlaue of the polynomial=%f",p); return 0; }