Hello sir i can not get case 0 in this example can you help me sir

#include
#include<math.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
double d;
d=(bb)-(4ac);
double r1,r2;
r1=(-b+sqrt(d))/(2
a);
r2=(-b-sqrt(d))/(2*a);
double first,second;
if(r1>r2)
{
first=r1;
second=r2;
}
else
{
first=r2;
second=r1;
}
if(d>0)
{

cout<<"Real and Distinct"<<endl;
cout<<first<<" "<<second<<endl;

}
if(d==0)
{

cout<<"Real and Equal"<<endl;
cout<<first<<" "<<second<<endl;

}
if(d<0)
{

cout<<"Imaginary"<<endl;

}
return 0;
}

hi @gamingzone123a_2a8bc985f4c429d5 for real and distinct print smaller no first

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.