help me in this code ,what’s worng in this code.
My test case 3 shows wrong answer
hello @sid_kapoor see you else statement there you have to handle the part when the roots are imaginary .
you have to just cout imaginary as per the ouput format .
after that it will pass every test case .
Happy Learning !!
it still shows wrong in test case 2
please share me the updated code via coding blocks ide link
hello @sid_kapoor
a) decide roots based on discriminat , because for imaginary roots discriminat will be negative and we cannot calculate squreroot for negative number
b)

if discriminat is negative then in that case u need to print imaginary
check this->
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.