Revising quadratic equations

My 1st test case is not passing.
I have implemented it at https://ide.codingblocks.com/s/199274.

Try printing the roots in increasing order.Also check the output format is same as given in the sample output.
you need to print the nature of the roots (Real and Distinct , Real and Equal or Imaginary)
It must be exactly same…even the uppercase and lowercase.Also this line is not required
cout << “Roots are complex \n”;
Also int instead of doubts since the outputs are integer.

1 Like