Skip to content

Commit a27a3a0

Browse files
authored
Create Program to Check a triangle is equilateral, isosceles or scalene
1 parent b0f1532 commit a27a3a0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
print("Input lengths of the triangle sides: ")
2+
x = int(input("x: "))
3+
y = int(input("y: "))
4+
z = int(input("z: "))
5+
6+
if x == y == z:
7+
print("Equilateral triangle")
8+
elif x==y or y==z or z==x:
9+
print("isosceles triangle")
10+
else:
11+
print("Scalene triangle")

0 commit comments

Comments
 (0)