Advertisement
KaySawbridge

Triangle Area Function

Jul 15th, 2020
296
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.    
  7.     return area
  8.    
  9. triangarea=triangle_area()
  10. print (triangarea)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement