Code not approved

can you please check this code

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

  1. print exactly same as given in question
  2. you have to use brackets when require in formula
  3. correct condition will be d==0
    you have written d=0 only which is wrong
  4. also print the roots in non decreasing order means increasing order( smallest first )

you see all the changes in modified Code