Skip to content

Commit f02b842

Browse files
authored
Create Check_Triangle.py
1 parent 840e0b1 commit f02b842

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

python/Check_Triangle.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#-----------------------------CHECK TRIANGLE------------------------------------
2+
# Problem description: Check if the given three numbers form a triangle
3+
# Main code:
4+
5+
a=float(input())
6+
b=float(input())
7+
c=float(input())
8+
def istri(a,b,c):
9+
if(((a+b)>c) and ((a+c)>b) and ((b+c)>a)):
10+
return True
11+
else:
12+
return False
13+
print (istri(a,b,c))

0 commit comments

Comments
 (0)