Cuboid is formed by stacking cubes and Rectangular prisms are formed by stacking rectangles.
Volume of a rectangular prism (cuboid) is: