Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def triangle_area():
- height=int(input("What is the height of the triangle?"))
- base=int(input("What is the base of the triangle?"))
- area=(height*base)
- return area
- triangarea=triangle_area()
- print (triangarea)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement