The answer is π r³/12.
The radius of the cylinder is r.
The radius of the cone is half of the radius of the cylinder: r/2.
The height of the cone is equal to the radius of the cylinder: r.
If the volume of the cone is π r²h/3, and the radius of the cone is r/2, and the height of the cone is r, then:
V = π × r² × h / 3
V = π × (r/2)² × r / 3
V = π × r²/4 × r / 3
V = π r³/12