def triangle():
a = int(input("请输入三角形的一条边:"))
b = int(input("请输入三角形一条边:"))
c = int(input("请输入三角形一条边:"))
if a+b > c and a+c > b and b+c > a:
print("能构成三角形")
else:
print("不能构成三角形")
triangle()
判断三条边是否能够成三角形
最新推荐文章于 2023-10-14 11:35:25 发布