第一次作业 1.8
删除 2017-09-11 10:41
public class Yuan{
public static void main(String[] args){
double r;
double area;
double zhouchang;
r = 5.5;
area = r * r * Math.PI;
zhouchang = r * Math.PI* 2;
System.out.println("半径为" + r + "圆的面积为" + area);
System.out.println("半径为" + r + "圆的周长为" + zhouchang);
}
}