Skip to content

Commit 45c4487

Browse files
authored
Merge pull request #123 from Sk1llful/master
Added code in basic scripts
2 parents 5b712bf + 6ed0b45 commit 45c4487

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)