Public class CirdeAndsquare{ public static void main(string[] args){ double r = 5.5; double c = 2*Math.PI*r; double s = r*r*Math.PI; System.out.println("圆的周长是:"+c); System.out.println("圆的面积是:"+s); } }
时间: 2024-10-03 13:45:06
Public class CirdeAndsquare{ public static void main(string[] args){ double r = 5.5; double c = 2*Math.PI*r; double s = r*r*Math.PI; System.out.println("圆的周长是:"+c); System.out.println("圆的面积是:"+s); } }