A cube has a greater volume.
I replaced the diameter and height in their equations, so we could compare.
I used 10.
The formula for cylinder volume is- (h is the Height, radius is half the diameter so it’s 10/2=5)
π * r^2*h = V
π * 5^2·10 ≈ 785.39816
The formula for a cubes volume is: (where x is a side length)
x^3
= 10^3
= 1000