Not getting correct output and test cases failed

In one of the challenge questions named revising quadratic equation I am not getting the correct output and I am not able to find the mistake in my code
here is a pic of my code

My output is coming as Real and Equal
whereas the correct output is Real and Distinct and roots are 4 7

Can you mention the test case for which your code failed?

Test case 0 and 2are failing

hi @yashshuklacoder
refer this https://ide.codingblocks.com/s/642820

can u plz tell whats the problem in my code I have shared above I will go through ur code but I want to find the mistake in my code so I don’t repeat it again

kindly save ur code on ide and send…

hi @yashshuklacoder
i have corrected ur code --> https://ide.codingblocks.com/s/642840
its working fine now and passing all test cases…

1 Like

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.