Calculation of Quadratic Equation Program in C++
Code:
#include <iostream>
using namespace std;
int main()
{
int a,b,c,m,x;
cout<<"Enter the value of a"<<a<<endl;
cin>>a;
cout<<"Enter the value of b"<<b<<endl;
cin>>b;
cout<<"Enter the value of c"<<c<<endl;
cin>>c;
cout<<"Enter the value of x"<<x<<endl;
cin>>x;
int quad=(a*x^2+b*x+c);
cout<<"the value of quad eq is"<<quad;
return 0;
}