test case 3 is not passing
Revising quadratic equation
#include
#include
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int d=bb-4ac;
if(d>0){
cout<<“Real and Distinct”<<endl;
cout<<((-b+sqrt(d))/2a)<<" “<<((-b-sqrt(d))/2a)<<endl;
}
else if(d==0){
cout<<“Real and Equal”<<endl;
cout<<(-b/2a)<<” "<<(-b/2*a)<<endl;
}
else{
cout<<“imaginary”<<endl;
}
return 0;
}