a: The length of an apothem of the base of the prism
n: The number of sides of the base of the prism
s: The length of a side of the base of the prism
h: The height of the prism
V: The volume of the prism
In general, the volume of a prism is the area of the base times the height of the prism.
The area of a regular polygon is given by the formula below:
Substitute to get the following:
Simplify to get the final result: