[蓝桥杯] 圆的面积 入门

原题链接


import java.util.Scanner;//导入Scanner类

public class Main {
    public static void main(String[] args) {
        double PI=3.14159265358979323;
        Scanner sc = new Scanner(System.in);
        int r = sc.nextInt();
        sc.close();
        System.out.printf("%.7f",r*r*PI);
    }
}

原文地址:https://www.cnblogs.com/ruoh3kou/p/9948757.html