I have solved the whole code and there is an output success. but on submitting the code its not passing the testcases and i cannot understand why. please help.
Cant Understand
Hello @shivay_madan,
The possible reason could be the output format of your code.
- The order in which you are printing the roots.
- The output is case sensitive.
Correct Output format:
-
for real and distinct root:
print Real and Distinct
on the next line, first print the value of (-b-sqrt(D))/(2a) and then (-b+sqrt(D))/(2a) separated by a space. -
for real and equal roots:
print Real and Equal
on the next line, print only one root. -
for imaginary roots:
print Imaginary
If this would not help, share your code with me.
Give a like, if you are satisfied.
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.