My code is showing Testcase #2 as wrong-answer.
please help!
Quadartic equation
@AlphaX
in the first case when the roots are real and distinct , they should be printed in increasing order. You have not implemented any check for that.
In Line No. 18 , the else if check should D==0 instead of D=0.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.