Anjeev Singh Academy

Python program to calculate the area of a triangle

Python program to calculate the area of a triangle

#################################################
# Language : Python
# Topic: Calculate area of triangle
# Author : Anjeev Singh
#################################################

b = float(input("Enter Base of triangle : "))
h = float(input("Enter Height of triangle : "))

area = (b * h) / 2

print("\n Area of Triangle : ", area)

Output:

Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top