public class VolumeOfCylinder
public static void Main()
Console.WriteLine("Enter the height of the cylinder:...");
height = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("And now the radius:...");
radius = Convert.ToDouble(Console.ReadLine());
double temp = Math.PI * radius;
volume = (Math.Pow(temp,2.0))*height;