We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f1a58 commit 6ed0b45Copy full SHA for 6ed0b45
Basic Scripts/Find_area _of_triangle.py
@@ -0,0 +1,9 @@
1
+a = float(input('Enter first side: '))
2
+b = float(input('Enter second side: '))
3
+c = float(input('Enter third side: '))
4
+
5
+s = (a + b + c) / 2
6
7
+area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
8
+print('The area of the triangle is:', area)
9
0 commit comments