代码:
1 import java.util.*;
2 public class Main {
3 public static void main (String [] args) {
4 Scanner s=new Scanner(System.in);
5 double r=s.nextInt();
6 double h=s.nextInt();
7 double v=0;
8 v=3.14*r*r*h;
9 System.out.println(String.format("%.2f",v));
10 }
11 }