using System;
public class CylinderVolume {
public static void Main() {
Console.WriteLine("Input radius:");
double radius = double.Parse(Console.ReadLine());
Console.WriteLine("Input length:");
double length = double.Parse(Console.ReadLine());
double area = radius * radius * Math.PI;
double volume = area * length;
Console.WriteLine("Area is "+area.ToString());
Console.WriteLine("Volume is "+volume.ToString());
}
}
Comments
Leave a comment