As you can see, the cube and the cylinder are the same height and width. But, if you use their 2d counterparts, a square and a circle, a circle always takes up 78.5% of the squares area. Knowing this, we can take this knowledge and see that the cube will have a greater volume.
Hope this helps :)