Python Program to calculate the area of triangle



base=float(input("Enter the base of the triangle"))

height=float(input("Enter the height of the triangle"))

area=0.5*base*height

print("The area of the triangle is",area)


Comments