Finding the volume of a prism?

A person can find the volume of a prism by 1/2 x length x width x height. This formula works for a triangular prism.