A pyramid has a base and triangular sides which rise to meet at the same point. The
base may be any polygon such as a square, rectangle, triangle, etc. The general formula
for the volume of a pyramid is: