15.Write a Python program to check whether the triangle is equilateral, isosceles or scalene triangle.

Solution :- 

Static:-

side1 = 45
side2 = 60
side3 = 60

if side1==side2 and side2==side3:
     print(“Equilateral triangle “)
elif side1 == side2 or side1 == side3 or side2 == side3:
     print(“Isosceles traigle “)
else:
     print(“Scalene Traingle”)

 

 

Output :- 

 

Dynamic :- 

side1 = int(input(“Enter the First Side :- “))
side2 = int(input(“Enter the Second Side :- “))
side3 = int(input(“Enter the Third Side :- “))

if side1==side2 and side2==side3:
      print(“Equilateral triangle “)
elif side1 == side2 or side1 == side3 or side2 == side3:
      print(“Isosceles traigle “)
else:
      print(“Scalene Traingle”)

Output :-