Why 1 test case not passing

#include
#include<math.h>
using namespace std;
int main(){
int a;
cin>>a;
int b;
cin>>b;
int c;
cin>>c;
int D;
int x;
int y;
D=bb-4ac;
x=(-b+sqrt(b
b-4ac))/2a;
y=(-b-sqrt(b
b-4ac))/2*a;
if(D>0){
cout<<“Real and Distinct”<<endl<<min(y,x)<<" "<<max(y,x)<<endl;

}
else if (D=0){
    cout<<"Real and Equal"<<endl<<min(x,y)<<"  "<<max(x,y)<<endl;
    
}
else{
    cout<<"Imaginary"<<endl;
}
return 0;

}

@safwanjaved5742_779f5468729e3535 you should use d==0 instead of d=0 in your else if condition for equal roots it will work fine
if it still do not work let me know and if clear rate my experience

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.

Ohk .Yes it work fine .