//题目:
![](https://i-blog.csdnimg.cn/blog_migrate/315ae3b59342c54ba864ff6bc58f94af.png)
#include<stdio.h>
//判断是不是三角形 a b c
int iftangle(int a,int b,int c) {
if (a + b > c && a + c > b && b + c > a) {
return 1;
}
else {
return 0;
}
}
//判断是不是直角三角形
void ifzhijiao(int a, int b, int c) {
//最大值都给a
if ( b>a) {
int temp = a;
a = b;
b = temp;
}
if (c > a) {
int temp = a;
a = c;
c = temp;
}
if (b* b + c * c == a*a) {
printf("Right triangle\n");//直角三角形
}
else if (b * b + c * c > a * a) {
printf("Acute triangle\n");//锐角
}
else {
printf("Obtuse triangle\n");;//钝角
}
}
//等腰
void dengyao(int a, int b, int c) {
if (a == b || a == c || b == c) {
printf("Isosceles triangle\n");
}
else {
return;
}
}
//等边
void dengbian(int a, int b, int c) {
if (a == b&&b == c) {
printf("Equilateral triangle");
}
else {
return ;
}
}
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (iftangle(a, b, c)==1) {
ifzhijiao(a, b, c);
dengyao(a, b, c);
dengbian(a, b, c);
}
else {
printf("Not triangle");
}
return 0;
}