📜  python代码示例中的等腰三角形代码

📅  最后修改于: 2022-03-11 14:46:51.951000             🧑  作者: Mango

代码示例1
print("Input lengths of the triangle sides: ")
x = int(input("x: "))
y = int(input("y: "))
z = int(input("z: "))

if x == y == z:
    print("Equilateral triangle")
elif x==y or y==z or z==x:
    print("isosceles triangle")
else:
    print("Scalene triangle")