public class Exercise2_2 
{
  public static void main(String[] args)
  {
    System.out.println("Enter radius of the cylinder");

    double radius = MyInput.readDouble();
    System.out.println("Enter length of the cylinder");

    double length = MyInput.readDouble();
    double volume = radius*radius*Math.PI*length;
    
    System.out.println("The volume of the cylinder is " + volume);
  }
}

