can you please check this code
Code not approved
not approved means??
not passing testcase?? or not compling??
compiling successful but failing test case
Modifed Code
now it is passing all testcases
you have done lots of small mistakes
- print exactly same as given in question
- you have to use brackets when require in formula
- correct condition will be d==0
you have written d=0 only which is wrong - also print the roots in non decreasing order means increasing order( smallest first )
you see all the changes in modified Code