One rule for every prism
Slice a loaf of bread: every slice has the same shape. A right prism is like that: a stack of identical layers shaped like its base. So:
Volume = area of the base × height
The same rule works whether the base is a rectangle, a triangle, an L shape, a trapezoid or a circle (a cylinder). The hard part is usually finding the area of the base.
Watch out: when a prism lies on its side (like a tent or a chocolate box), its "height" is the distance between the two bases, which may look like a length.