We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 840e0b1 commit f02b842Copy full SHA for f02b842
1 file changed
python/Check_Triangle.py
@@ -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