This question was asked in Ex 13.6, 7
Volume of cylinder

Gurman Singh's image