Third test case not passing

its most probably the test case for the complex roots. i didnt understand the case for imaginary roots in the question.

hello @ashishxmathew wait letme go through your code and will let you know the mistake .

hey @ashishxmathew the problem was in line 31 of your code .
it is clearly mentioned that if the roots are imaginary then you dont need to print the roots but you have to just print “Imaginary” .
this was the only fault in your code rest everything was fine .


please go through this updated code .
if you feel that your doubt is cleared please mark this doubt as resolved and do give the star ratings and feedback .
Happy Learning !!

1 Like