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