import java.util*;

public class Ch3_Prexercise2

{

static Scanner console = new Scanner(System.in);

public static void main(String[] args)

{

int height;

int radius;

double height;

double radius;

System.out.print(Enter the height of the cylinder: ");

radius = console.nextDouble();

System.out.println();

System.out.print("Volume of the cylinder = "

+ PI * Math.pow(radius, 2.0 + height);

System.out.print("Enter the radius of the base of the "

+ " cylinder: ");

height = console.nextDouble();

System.out.println();

System.out.println("Surface area: "

+ (2 * PI * Math.pow(radius, 2.0))

+ (2 * PI * radius * height));

static final double PI = 3.14159;

}

}