compilation is successful logic is correct but it shows wrong answer on all testcases
Compilation is successful logic is correct but it shows wrong answer on all testcases
you need to print the output as given in the question:
as :
line 1: Nature of Roots as: “Real and Distinct” or “Real and Equal” or “Imaginary”
line 2: contain the roots separated by a space…
Modified Code is:
I hope this helps