Challenges - Fundamentals : Revising Quadratic Equations

#include
#include
using namespace std;
int main(){
float a,b,c;
cin>>a>>b>>c;
float discriminant;
float root1 , root2;
discriminant = bb - 4ac;
root1 = (-b + sqrt(discriminant))/(2
a);
root2 = (-b - sqrt(discriminant))/(2*a);
if(discriminant>0){
cout<<“Real and distinct”<<endl;
cout<<root1<<" “<<root2<<endl;
}
if(discriminant==0){
cout<<“Real and equal”<<endl;
cout<<root1<<” "<<root2<<endl;
}
if (discriminant<0){
cout<<“Imaginary”<<endl;
}
return 0;
}

But the report was that it failed in one test case. May I know in which case it is ?

@Riankk hey krishanu save your code on ide and then share it here.

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.