a=int(input("请输入三角形的一条边:"))
b=int(input("请输入三角形的一条边:"))
c=int(input("请输入三角形的一条边:"))
if a+b>c and a+c>b and b+c>a:
if a==b or a==c or b==c:
print("等腰三角形")
elif a*a+b*b==c*c or b*b+c*c==a*a or a*a+c*c==b*b:
print("直角三角形")
else:
print("普通三角形")
else:
print("不能组成三角形")
python三角形判断
最新推荐文章于 2023-06-04 14:24:15 发布