[蓝桥杯] 圆的面积 入门

it2025-11-17  10

原题链接


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

相关资源:数据结构—成绩单生成器
最新回复(0)