Similarity is that both of them have the same heights
Given: Diameter of cylinder = 7 cm
Radius of cylinder (r) = 72cm
And Height of cylinder h = 7 cm
Later surface area of cylinder = 2πrh=2×227×72×7=154cm2
Now, lateral surface are of cube = 4l2=4×(7)2=4×49=196 cm2
Hence, the cube has larger lateral surface area.