[tex]\begin{gathered} \text{volume of a cylinder=}\pi\times r^2\times h \\ V=\pi\times r^2\times h \\ \text{divide both sides by }\pi r^2 \\ \frac{V}{\pi r^2}=h \\ h=\frac{V}{\pi r^2} \end{gathered}[/tex][tex]\begin{gathered} V=502.4cm^3 \\ r=4\operatorname{cm} \\ \pi=3.14 \\ h=\frac{V}{\pi r^2} \\ h=\frac{502.4}{3.14\times4^2} \\ h=\frac{502.4}{3.14\times16} \\ h=\frac{502.4}{50.24} \\ h=10\text{ cm} \end{gathered}[/tex]
height of the cylinder = 10 cm