Computer Science, asked by debalinanag07, 7 months ago

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 balkishansharma145
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