Computer Science, asked by dontreadmyname63, 1 day ago

Write a program of python for HERON FORMULA which calculates area of triangle
no copy paste
NO SCREENSHOT

Answers

Answered by llAestheticKingll91
6

Explanation:

Python program to find the area of a triangle

# Three sides of the triangle is a, b and c:

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.

area = (s*(s-a)*(s-b)*(s-c)) 0.5.

Answered by samarthkrv
0

Answer:

import math

a = float(input("Enter side 1"))

b = float(input("Enter side 2"))

c = float(input("Enter side 3"))

perimeter = a + b + c

semi = perimeter / 2

area = math.sqrt(semi*(semi - a)*(semi*b)*(semi*c))

print("Area is ",  area)

Explanation:

Similar questions