Computer Science, asked by shorna3951, 1 year ago

How to Calculate the Area of a Triangle using Python?

Answers

Answered by Shubu01
2

\huge{Hey Mate!!!}

☆☞ Here is ur answer ☜☆

✔✔ Python Program to Calculate the Area of a Triangle

✔✔ # Python Program to find the area of triangle.

✔✔ # Three sides of the triangle a, b and c are provided by the user.

✔✔ a = float(input('Enter first side: '))

✔✔ b = float(input('Enter second side: '))

✔✔ c = float(input('Enter third side: '))

✔✔ # calculate the semi-perimeter.

s = (a + b + c) / 2.

✔✔ # calculate the area.

HOPE IT HELPS!

Answered by SnehaG
2

<font color="red">hello!!

☆☞ Here is ur answer ☜☆

✔✔ Python Program to Calculate the Area of a Triangle

✔✔ # Python Program to find the area of triangle.

✔✔ # Three sides of the triangle a, b and c are provided by the user.

✔✔ a = float(input('Enter first side: '))

✔✔ b = float(input('Enter second side: '))

✔✔ c = float(input('Enter third side: '))

✔✔ # calculate the semi-perimeter.

s = (a + b + c) / 2.

✔✔ # calculate the area.

HOPE IT HELPS!

Similar questions