Question

#include <stdio.h> int function() { int x, y; printf("Enter the value of x:"); scanf("%d", &x); y...

#include <stdio.h>

int function()

{

int x, y;

printf("Enter the value of x:");

scanf("%d", &x);

y = 3*x*x*x*x*x + 2*x*x*x*x - 5*x*x*x - x*x + 7*x - 6;

printf("%d", y);

return y;

}

int main()

{

function();

}

Modify the program of Programming Project 5 so that the polynomial is evaluated using the following formula:

((((3x+2)x-5)x+7)x-6

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include <stdio.h>

int function()

{

int x, y;

printf("Enter the value of x:");

scanf("%d", &x);

y = (((3 * x+2) * x-5)*x+7) * x-6;

printf("%d", y);

return y;

}

int main()

{

function();

}

1 #include <stdio.h> 3 int function() 5- { int x, y; printf(Enter the value of x:); scanf(%d, &x); y = (((3 * x+2) * x-5)

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Add a comment
Know the answer?
Add Answer to:
#include <stdio.h> int function() { int x, y; printf("Enter the value of x:"); scanf("%d", &x); y...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT