Hello, im new to c++ programming. What i am suppose to do is create a program to solve quadratic equations. Now when i input numbers, it does not solve it correctly. Now i know there is something wrong, but i have no idea what it is. Please help.
//Changing background and text color, for my own personal reasons
system("COLOR 80");
cout<<"This program will provide solutions for an equation of the form\n"<<endl;
cout<<"\t\t\t\tA*x^2 + B*x + C = 0,\t\t\t\t"<<endl;
cout<<"where A, B, and C are integers, and A is not equal to zero."<<endl;
cout<<scientific;
cout<<"Enter value of A: ";
cin>>a;
cout<<endl;
cout<<"Enter value of B: ";
cin>>b;
cout<<endl;
cout<<"Enter value of C: ";
cin>>c;
cout<<"This program will provide solutions for an equation of the form\n"<<endl;
cout<<"\t\t\t\tA*x^2 + B*x + C = 0,\t\t\t\t"<<endl;
cout<<"where A, B, and C are integers, and A is not equal to zero."<<endl;
cout<<"Enter value of A: "<<a<<"\n";
cout<<endl;
cout<<"Enter value of B: "<<b<<"\n";
cout<<endl;
cout<<"Enter value of C: "<<c<<"\n";
cout<<endl;
if(disc>0)
{
cout<<"The two real solutions are ";
cout<<"\tx= "<<setprecision(4)<<solut1<<endl;
cout<<"\t\t\tand";
cout<<"\tx= "<<setprecision(4)<<solut2<<endl;
}