base = float(input("Enter the base:"))
height = float(input("Enter the height:"))

area=0.5*base*height 

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

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: