Dim radius, height As Single
Const PI as Single = System.Math.Pi
Console.WriteLine("What is the radius of the cone?")
radius = Console.ReadLine()
Console.WriteLine("What is the height of the cone?")
height = Console.ReadLine()
volume = (1/3) * PI *(radius ^ 2) * height
Console.WriteLine("The volume of the cone is " & volume & ".")