Sir i am not able to get 3rd test case ?why it is not getting the 3rd case successful please tell my mistakes

#include
#include<math.h>
using namespace std;
int main() {
int a,b,c,d;
cin>>a>>b>>c;
d=(bb)-(4a*c);
double sqrt_val = sqrt(abs(d));
if(d>0)
{
cout<<“Real and Distinct”<<endl;
int x=(-b + sqrt_val) / (2 * a);
int y=(-b -sqrt_val) / (2 * a);
if(x<y){
cout<<x<<" “<<y;
}
else{
cout<<y<<” “<<x;
}
}
else if(d==0){
cout<<“Real and Equal”<<endl;
int x=-b / (2 * a);
int y=-b / (2 * a);
cout<<x<<” "<<y;
}
else{
return 0;

}
return 0;

}

in else case you have to print “Imaginary”

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.

1 Like

yes sir thanku

yes sir thanku

plz give your feedback
https://online.codingblocks.com/feedback/d/75612