#include<conio.h>
#include<iostream.h>
#include<math.h>
main()
{
int a,b,c;
float x1,x2;
cout<<"Enter a:";
cin>>a;
cout<<"Enter b:";
cin>>b;
cout<<"Enter c:";
cin>>c;
if(((b*b)-(4*a*c))<0)
{
cout<<"Moadele faghede rishe mibashad";
}
else
{
x1=(b+sqrt((b*b)-(4*a*c)))/2*a;
x2=(b-sqrt((b*b)-(4*a*c)))/2*a;
if(x1==x2)
{
cout<<"Rishe moadele="<<x1;
}
else
{
cout<<"Rishe 1 moadele="<<x1<<"\n";
cout<<"Rishe 2 moadele="<<x2;
}
}
getch();
return 0;
}