If the height is measured between the parallel ends of the cylinder, the volume is identical: 360 cm³.
_____ If the "height" is measured along the central axis of the cylinder, there is insufficient information to determine the volume.
The slant length of a prism (even a cylindrical one) is immaterial. What matters to the volume is the area of the base and the distance between the planes of the bases (height).