12.(C) Printing the value of f(x)=x^4+5*x-3 if x is taken as input
#include <stdio.h>
#include <math.h>
int main()
{
int x, k;
printf("Enter the value of x\n");
scanf("%d", &x);
k = pow(x, 4) + 5 * x - 3;
printf("The value of f(x) = %d", k);
return 0;
}
Comments
Post a Comment