public class Exercise08 { public static void main(String[] args){
double c=2 * 5.5 * Math.PI;
double s=5.5 * 5.5 * Math.PI;
System.out.println("周长为"+c);
System.out.println("面积为"+s);
}
时间: 2024-10-13 16:42:47
public class Exercise08 { public static void main(String[] args){
double c=2 * 5.5 * Math.PI;
double s=5.5 * 5.5 * Math.PI;
System.out.println("周长为"+c);
System.out.println("面积为"+s);
}