For this case we have that by definition, the volume of a cylinder is given by:

Where:
r: It is the radius of the cylinder
h: It is the height of the cylinder
According to the problem data we have:

We replace the data:

We simplify:

We choose the positive value:

Thus, the radius of the cylinder is 3 cm. Therefore the diameter is

Answer:
The diameter of the cylinder is
