unable to see the code solution even after unlocking it
Unable to acess solutions of problem
hi @adawet2001_b27534b92bcde68e,
#include<iostream>
#include<cmath>
using namespace std;
int main() {
int a,b,c,x1,x2;
double d;
cin>>a>>b>>c;
d=b*b-4*a*c;
if(d>0) {
x1=((-b)+sqrt(b*b-4*a*c))/2*a;
x2=((-b)-sqrt(b*b-4*a*c))/2*a;
cout<<"Real and Distinct"<<endl;
cout<<min(x1,x2)<<" "<<max(x1,x2)<<" ";
}
else if(d==0){
x1=(-b/2*a);
x2 = x1;
cout<<"Real and Equal"<<endl;
cout<<x1<<" "<<x2;
}
else{
cout<<"Imaginary";
}
return 0;
}