#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b,c,x1,x2,answer;
while(cin>>a>>b>>c){
answer=(b*b)-4*a*c;
x1=(-b+sqrt(answer))/(2*a);
x2=(-b-sqrt(answer))/(2*a);
if(answer>0){
cout<<"Two different roots "<<"x1="<<x1<<
" , x2="<<x2<<endl;
}
@@@@@@@
else if (answer==0){
cout<<"Two same roots x="<<x2<<endl;
}
else if (answer<0){
cout<<"No real root"<<endl;
}
@@@@@@@@@
}
return 0;
}
#include
#include
using namespace std;
int main()
{
int a,b,c,x1,x2,answer;
while(cin>>a>>b>>c){
answer=(b*b)-4*a*c;
x1=(-b+sqrt(answer))/(2*a);
x2=(-b-sqrt(answer))/(2*a);
if(answer>0){
cout<<"Two different roots "<<"x1="<
" , x2="<
}
else if (answer==0){
cout<<"Two same roots x="<
}
else if (answer<0){
cout<<"No real root"<
}
@@@@@@@@@
}
return 0;
}