Volume of Cones Examples

Example 1

A right cone has a diameter of 6 m and a height of 12 m. What is its volume?

Example 2

A cone has been removed from the inside of a square pyramid. If the diameter of the cone's base has the same length as the pyramid's base, what's the volume of the resulting solid?