#include
#include<math.h>
int main() {
int a=1,b=-11,c=28,r1,r2;
r1=(-b+sqrt((b^2)-(4ac)))/2a;
r2=(-b-sqrt((b^2)-(4ac)))/2a;
cout<< r1<< r2;
return 0;
}
Quadratic equation failed test case
Hey Rohit, can you please save your code on ide.codingblocks.come and share the link?
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.