Quadratic roots

#include
#include
using namespace std;
int main()
{
int a,b,c;
float dis,root1,root2;
cin >>a>>b>>c;
dis=bb-4a*c;
if(dis>0)
{
cout<<“Real and distinct”<<endl;

	 root1 = (-b - sqrt(dis)) / (2 * a);
	 root2 = (-b + sqrt(dis)) / (2 * a);
	 cout<<root1<<" "<<root2;

}
else if (dis=0)
{
    cout<<"real and equal"<<endl;
     root1 = (-b + sqrt(dis)) / (2*a);
    cout << "root1 = root2 =" << root1 << endl;
}
else
{
   cout<<"imaginary";
}
return 0;

}

Hey @shdanish1508 discrimant is b^2 - 4 * a * c, but you have written it as bb - 4ac please change it to bb - 4ac and if you still face any problem feel free to ask.

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.