A cylinder is a 3-D geometrical shape, the surface formed by the points at a fixed distance from a given line segment, the axis of the cylinder. A cylinder has two parallel faces in its structure. The height of a
cylinder is perpendicular to the two bases. The cylinder has a round
base and a perpendicular height. Cylinder is formed by rotating one side of a rectangle about its opposite sides, keeping fixed.

Where,

r = Radius of the cylinder

h = Height of the cylinder.