Guest User

Triangle Area

a guest
Sep 20th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment