Program to print type of Triangle
#program to print type of triangle
x = int(input("Length of first side: "))
y = int(input("Length of second side: "))
z = int(input("Length of third side: "))
if x == y == z:
print("The given triangle is Equilateral")
elif x==y or y==z or z==x:
print("The given triangle is Isosceles")
else:
print("The given triangle is Scalene")
Comments
Post a Comment