#include
#include<math.h>
using namespace std;
int main() {
int a;
int b;
int c,d;
float d1,x;
cin>>a;
cin>>b;
cin>>c;
d=((bb)-(4a*c));
d1=pow(d,0.5);
cout<<d1<<endl;
if(d==0)
{
x=(-b)/(2*a);
cout<<"real and equal"<<endl;
cout<<"\n"<<x<<" "<<x;
}
else if(d<0)
{
cout<<"imaginary";
}
else{
cout<<"real and distinct"<<endl;
x=(-b-d1)/(2*a);
cout<<x;
x=(-b+d1)/(2*a);
cout<<" "<<x;
}
return 0;
}
for sample input of 1 -11 28 the output shoukd be
real and distinct
4 7
but my output is coming
0
real and equal
0 0