The volume of a prism is given by:

Volume = Area of base x Height
V=AH
where A is the area of the base (or crosssection) of the prism and H is the height. 
The rule for finding the volume of a prism is the same no matter what polygon forms the base. Of course, how you find the area of the base will depend on the polygon that forms the base.