Program to find the area of triangle

A plane figure with three straight side and three angles in known as triangle.

How to

Three side of triangle a, b, and c is provide by user.

calculate the semi-perimeter
calculate the area.
area = (s(s-b)(s-b)(s-b))*0.5

Program
a = float(input("Enter first side"))
b = float(input("Enter second side"))
c = float(input("Enter third side"))

s = (a+b+)/2
area = (s*(s-b)*(s-b)*(s-b))**0.5

print("The area of the triangle is %0.2f"%area)

Leave a Reply