In this we are going to see a program to check whether a Triangle is Equilateral Isosceles or Scalene in Python Programming Language.
side1=int(input("Enter first side of triangle : "))
side2=int(input("Enter second side of triangle : "))
side3=int(input("Enter third side of triangle : "))
if side1 == side2 and side2 == side3:
print("Equilateral triangle")
if (side1 == side2 and side2 != side3) or (side2 == side3 and side2 != side1) or (side1 == side3 and side1 != side2):
print("Isosceles Triangle")
if side1 != side2 and side1 != side3 and side2 != side3:
print("Scalene Triangle")
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP