I'm doing the ever so popular quadratic equation and the topic I saw on here didn't use functions to solve it. I can only get the function to return one of the roots. Can someone help?
case 1:
{
double a,b,c = 0;
double value = 0;
cout<<endl;
cout<<"In the form ax^2 + bx + c = 0"<<endl<<endl;
cout<<"What is the 'a' value - ";
cin>>a;
cout<<"What is the 'b' value - ";
cin>>b;
cout<<"What is the 'c' value - ";
cin>>c;
value = quadraticEquation(a,b,c);
cout<<"The Roots Are "<<?????<<" and "<<????????<<endl;
break;
}