- #1
SOHAWONG
- 16
- 0
after typing these following code
when running this code
error occurs,but the editor doesn't indicate me where's the problem
#include <iostream>
using namespace std;
int main()
{int deg;
cout << "Enter the degree of the polynomial:" << endl;
cin >> deg ;
cout << "For the polynomial f(x)=";
if (deg ==3)
{
cout<<"For the polynomial f(x)=C1*x^3+C2*x^2+C3*x^1+C4, enter C1, C2, C3, C4 in order:";
}
else if(deg==2)
{
cout<<"For the polynomial f(x)=C1*x^2+C2*x^1+C3, enter C1, C2, C3 in order:";
}
else if (deg==1)
{
cout<<"For the polynomial f(x)=C1*x+C2, enter C1, C2 in order:";
}
return 0;
when running this code
error occurs,but the editor doesn't indicate me where's the problem