I think my program is right.
Which cases are wrong
Plz send ur code by saving on ide so that I could check.
#include
#include<math.h>
using namespace std;
int main()
{
int a,b,c,D;
float x,y;
if(-100 <= a, b, c <= 100)
cout<< “Enter coefficients of x^2 , x and constant”;
cin>>a>>b>>c;
D= (bb) - 4ac;
if(D<0)
cout<<“Roots are Imaginary”;
else if(D==0)
{
cout<<“Roots are Equal”;
x=(-b/2.0a);
cout<<x<<" “<<x<<endl;
}
else
{
cout<<“Real and Distinct”<<endl;
x=(-b + sqrt(D)) /2.0a;
y=(-b - sqrt(D)) /2.0a;
cout<<y<<” "<<x<<endl;
}
return 0;
}