when i enter 1 2 1, the output is -1. Why the output is -1 and not -1.00 ?Code:#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { float a, b, c; float x1, x2; float root, temp; cout << "Enter the coefficient of the quadratic function (a*x^2+bx+c): "; cin >> a >> b >> c; temp = (b*b) - (4*a*c); if(temp>=0) { root = sqrt(temp); x1 = (-b+root) / (2.0*a); x2 = (-b-root) / (2.0*a); if (x1==x2) { cout << "The single root for the quadratic function -> x = " << setprecision(2) << x1 << endl; } else { cout << "The root for the quadratic function -> x = " << setprecision(2) << x1 << " and " << setprecision(2) << x2 << endl; } } else cout << "Invalid input" << endl; system("pause"); return 0; }