Write a program in Python to take three sides of a triangle as input and determine whether the
triangle is equilateral, isosceles or obtuse.
Note: Equilateral means all sides are equal, isosceles means two of the sides are equal but not the
third one, obtuse means all 3 are different
Answers
Answered by
1
Answer:
I hope it helps
Explanation:
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
Similar questions
Math,
3 months ago
Computer Science,
3 months ago
English,
3 months ago
Math,
7 months ago
Physics,
7 months ago
Math,
1 year ago
Social Sciences,
1 year ago