题目来源:牛客网 编程初学者入门训练 BC27 计算球体的体积
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double r = sc.nextDouble();
double pai = 3.1415926;
double v = 4 * pai * Math.pow(r,3) / 3;
System.out.println(String.format("%.3f",v));
}
}