int main()
{
double a,b,c;
double A,B,C;
scanf(“%lf %lf %lf”,&a,&b,&c);
//替换
if(a<b){
double t = a;
a = b;
b = t;
}
if(a<c){
double t = a;
a = c;
c = t;
}
if(c>b){
double t = c;
c = b;
b = t;
}
A = a;
B = b;
C = c;
if(A>=B+C){
printf("NAO FORMA TRIANGULO");
}
else {
if(A*A==B*B+C*C)
printf("TRIANGULO RETANGULO\n");
if(A*A>(B*B+C*C))
printf("TRIANGULO OBTUSANGULO\n");
if(A*A<(B*B+C*C))
printf("TRIANGULO ACUTANGULO\n");
if(A==B&&B==C){
printf("TRIANGULO EQUILATERO\n");
}
else if(a==b||a==c||b==c)
printf("TRIANGULO ISOSCELES\n");
}
return 0;
}
//注意相应的排序问题,替换