- #1

- 420

- 0

#include<iostream.hpp>

#include<math.h>

int main()

{

double root1,root2,a,b,c,root;

cout << "Enter the coefficients a,b,c: "; ! This is the line where Dev-C++ finds an error

cin >> a >> b >> c;

root=sqrt(b*b-4.0*a*c);

root1=.5*(root-b)/a;

root2=-.5*(root-b)/a;

cout << "The solutions are " <<root1 << " and " <<root2 << "\n";

return(0);

}