#include<iostream>
#include <math.h>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c ;
int d, e,f ;
d = ((-b + (sqrt((b*b)-(4*a*c))))/2*a);
e = ((-b - (sqrt((b*b)-(4*a*c))))/2*a);
if (((b*b )- (4*a*c)) > 0 )
cout << "Two different roots "<< "x1="<< d <<" "<< ", " << "x2=" << e ;
else if (((b*b )-(4*a*c)) == 0 )
cout << "Two same roots " << "x="<< d ;
else
cout << "No real root" ;
return 0;
}
求問執行時最後一題過不了 為何