Answer to Question #267555 in C for naha

Question #267555

following equation 3x4 + 4x3 + x2 + 7x + 9, substitute the user provided value of x and generate the result.


1
Expert's answer
2021-11-17T17:36:09-0500
#include <stdio.h>
#include <math.h>
int main()
{
    printf("Enter the value of x: ");
    int x;
    scanf("%d",&x);
    
    int result=(3*(pow(x,4)) + (4*(pow(x,3))) + (pow(x,2)) + (7*x) + 9);
    printf("\nResult = %d",result);
    


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS