输入一个半径求圆的面积和周长
Scanner sc = new Scanner(System.in); System.out.print("请输入半径"); int r =sc.nextInt(); final double π = 3.14; System.out.print("面积为:"+(π*r*r)); System.out.print("周长为:"+(π*r*2));