Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def triangle_area():
- height = float(input("Enter the height of the triangle: "))
- base = float(input("emter the base of the triangle: "))
- area = 0.5 * base * height
- print("Area of triangle is ", area, "square units")
- triangle_area()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement