Find Triangle are Equilateral,Isosceles and Scalene Triangle With the help of if, elif,else Statement in python

Program to find the triangle are Equilateral , Isosceles  and Scalene in python 

 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 Triangle")

Output :

x :10 y :45 z :10 Isosceles Triangle


0 comments:

Post a Comment

gurnoorsingh5974@gmail.com

Count Upper Case and Lower Case Word in a string (Python)

  Count Upper Case and Lower Case Word in a string     (Python) def string_test(s):     d={"UPPER_CASE":0, "LOWER_CASE":...