What is the problem in my code
Please save your code first and then share the link
Hi sonu you are only taking input for a, and c in line 7, please take input for all a, b, and c
modify line 7 to
cin >> a >> b >> c; and it’ll give correct answer
@sonu28sharma99 you have to print the value of roots even if they are real and equal. you dont have to print roots ONLY if they are imaginary. Remember to print both the roots in non-decreasing order. Please mark your doubt as resolved if you are satisfied.
Please share me snap of correct code
@sonu28sharma99 you did not even make any of the changes i have suggested. https://ide.codingblocks.com/s/191898 Here, I have corrected your code, now it’s working for all cases. Please mark your doubt as resolved if you are satisfied.
Please mark your doubt as resolved if you are satisfied.
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.
I already mark resolved …