Revising Quadratic Equations

one test case is wrong please help

Piyush, your code is not working with the condition when roots are real and equal, in that case, you are printing x1 and x2, which is wrong, instead you need to print x1 only, so make changes in line no 25 of your code as : cout << x1 <<" "<<x1;
and then try to submit the code…