Revising Quadratic Equations Output related

1 Do we have to convert the output into integer.
2 What to print if the roots are Imaginary and real and distinct , and in what case ?

Hi Abhinav
Firstly, you need to print the nature of the roots i.e., imaginary/ real and distinct/ real and equal. For this, the output will be a string.
Then if the roots are real, you need to print its value in ascending order. Here the output will be a integer.
Hope it answers both your queries.

Hi Abhinav, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.