Advertisement
NicolasF

Operators

Mar 18th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #Volume of a pyramid
  2. #Author: NicolasF
  3. #Program: Pyramid volume calculator
  4.  
  5. base = input("Enter the area of the base: ")
  6. height = input("Enter the height of the pyramid: ")
  7.  
  8. volume = (base*height)/3
  9.  
  10. print "The volume of the pyramid is: "+str(volume)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement