Const PI As Double = Math.PI
Dim volume, radius, height As Single
Console.WriteLine("Please enter the radius of the cone:")
radius = Console.ReadLine()
Console.WriteLine("Please enter the height of the cone:")
height = Console.ReadLine()
volume = (1/3) * PI * height * (radius ^ 2)
Console.WriteLine("The volume of the cone is " & volume & " cubic units")