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.
2 parents 5b712bf + 6ed0b45 commit 45c4487Copy full SHA for 45c4487
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