Heather P. answered 04/30/19
13+ Years Teaching & Tutoring Geometry in Middle/High Schools
Assuming that the cone is creating empty space inside the square prism, you'll need to find the volume of the prism & the cube, then subtract.
Or, if you set up the literal equation that models this situation and simplify it, then all you need to do is plug in the numbers in the correct places to find your result.
Prism: V=Lwh=L2h (because the base is a square)
Cone: V=πr2h/3
Combined: Prism-Cone = L2h-(πr2h)/3 = h[L2-(πr2)/3]
Remember, r=d/2!!