#include #include void main () { double a, b, c, x, y; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(3); cout << "This gives the AP standard 3 digits.\nIt is a program for the quadratic equation.\nInput a, then b, then c in ax^2+bx+c, with a space between the values.\n"; cin >> a >> b >> c; if ((b*b-4*a*c)<0) { cout << "The discriminant is negative. No real solutions\n"; return 0; } else { x=(-b+sqrt(b*b-4*a*c))/(2*a); y=(-b-sqrt(b*b-4*a*c))/(2*a); cout << "The two solutions are: " << x << " and " << y; char skip; cout << "Press Enter to continue"; cin.get(skip); cin.get(skip); return; } }