Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Python/Program 48/Find_area _of_triangle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))

s = (a + b + c) / 2

area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is:', area)
9 changes: 9 additions & 0 deletions Python/Program-48/Find_area _of_triangle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))

s = (a + b + c) / 2

area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is:', area)

1 change: 1 addition & 0 deletions Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
| [Program-40](https://github.com/swaaz/basicprograms/blob/814a1e60ae23d81158d8174666f23c9b7419e15e/Python/program-40/BasicGraphs.py) | Graph pictorial representation of set of objects
| Program-41 | - |
| [Program-42](https://github.com/swaaz/basicprograms/blob/814a1e60ae23d81158d8174666f23c9b7419e15e/Python/Program%2035/program42.py) | Python program to print Hourglass pattern
| [Program-48](https://github.com/swaaz/basicprograms/blob/814a1e60ae23d81158d8174666f23c9b7419e15e/Python/Program%2048/Find_area _of_triangle.py) | Python program to find area of triangle

<hr>