For the following equation 3x^4 + 4x^3 + x^2 + 7x + 9, how can i substitute the user provided value of x and generate the result in c++?
Answers
Answered by
0
first ask the user for a value
cout<<"enter a number of your choice";
then accept the value
cin>>x;
then calculate the value
...
#include
{
int x;
cout<<"enter a number of your choice";
cin>>x;
cout<<3*x^4+.....(full quation);
getch();
}
hope this helps
cout<<"enter a number of your choice";
then accept the value
cin>>x;
then calculate the value
...
#include
{
int x;
cout<<"enter a number of your choice";
cin>>x;
cout<<3*x^4+.....(full quation);
getch();
}
hope this helps
Arya18Pandey:
u would also need another header file..
C1003
Similar questions
Biology,
8 months ago
Environmental Sciences,
8 months ago
Computer Science,
8 months ago
Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Physics,
1 year ago