// Q.A.3 // John Wang // Goal: Read the radius and out the volume of the cylinder import java.text.DecimalFormat; import java.util.Scanner; class QA916_3 { public static void main(String[] args) { Scanner input = new Scanner(System.in); DecimalFormat f2 = new DecimalFormat("0.00"); System.out.print("Redius: "); double r = input.nextDouble(); System.out.print("Heighth: "); double h = input.nextDouble(); double v = Math.PI * r * r * h; System.out.println("Volume = " + f2.format(v) + "\n\n\n"); } }