// Finding roots of a quadratic equation
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
  double a, b, c;

  cout << "Input the coefficients: ";
  cin >> a >> b >> c;

  double delta = b*b - 4.0*a*c;

  if(delta >= 0.0){
    double x1 = 0.5*(-b + sqrt(delta))/a;
    double x2 = 0.5*(-b - sqrt(delta))/a;
    cout << "There are two real roots: "
         << x1 << "  "<< x2 << endl;
  }
  else
    cout << "No real root exists. " << endl;

  return 0;
}

