peth31

Triangle Area

Sep 20th, 2020
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Calculating the Area of a Triangle
  2.  
  3. def triang_area():
  4.   print('Proporciona la Base y Altura:')
  5.   print('Base: ')
  6.   b = input()
  7.   print('Altura: ')
  8.   h = input()
  9.   area = (float(b)*float(h))/2
  10.   print('El Área Es: ' + str(area))
  11.  
  12. triang_area()
Add Comment
Please, Sign In to add comment