Accept three angles of a triangle. Check and print whether it will form an equilateral triangle (each angle should be equal to 60)or scalene triangle(None of them should be equal to each other,)
Answers
Answered by
1
Answer:
print("Enter 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")
Attachments:
Similar questions