#include
using namespace std;
#include
#include<math.h>
int main() {
float a,b,c,d,f,k;
cin>>a>>b>>c;
d=(b2)-(4ac);
if(d==0)
{cout<<“Real and equal”<<endl;
k=((-b)/(2a));
cout<<k<<""<<k;}
else if(d>0)
{cout<<“Real and Distinct”<<endl;
f=sqrt(d);
cout<<(-b-f)/(2a)<<" "<<(-b+f)/(2a);
}
else{
cout<<“Imaginary”;
}
return 0;
}
The code is not passing all test cases