Advertisement
KaySawbridge

Area of a triangle

Jul 15th, 2020
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def triangle_area():
  2.    
  3.     height=int(input("What is the height of the triangle?"))
  4.     base=int(input("What is the base of the triangle?"))
  5.     area=(height*base)
  6.     print("The area of your triangle is ",area)
  7.    
  8. triangle_area()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement