Write a program to evaluate the expression X4+X3+10X for any number X

#include<stdio.h>
#include<math.h>

int main()
   {
     float  x, N;
     printf( "Enter a value for X: " );
     scanf( "%f" ,&x);
     N=pow(x,4) + pow(x,3) + 10*x;
     printf( "%.2f" , N);
     return  0;
     }

No comments:

Post a Comment