Let radius of cylinder = r
Diameter of cylinder = 2r
Height of cylinder =

.... [Given]
Volume of cylinder =

Volume of sphere with radius 4 cm =

According to the question,
Volume of cylinder = Volume of sphere
=>

=>

=> r = 4
Hence,radius of base of cylinder = 4 cm