#include
#include
#include
using namespace std;
int main() {
int a,b,c,d,root,root1,root2;
cin>>a>>b>>c;
d=((bb) - (4ac));
if(bb > 4ac){
root1=(-b-sqrt(d))/(2a);
root2=(-b+sqrt(d))/(2a);
cout<<“Real and Distinct”<<endl<<min(root1,root2)<<" “<<max(root1,root2)<<endl;
}
else if(bb==4ac){
root1=(-b)/(2a);
root2=(-b)/(2*a);
cout<<“Real and Equal”<<endl<<root1<<” "<<root2<<endl;
}
else{
cout<<“Imaginery”<<endl;
}
return 0;
}
This code give wrong output for test case 0