复习Java之计算圆面积
public class ComputeArea{
public static viod main (String[] args) {
double radius;
double area;
radius=20;
area=radius*radius*3.14159;
System.out.println("The area for the circle of radius"+radius+"is"+area);
}
}
public class ComputeArea{
public static viod main (String[] args) {
double radius;
double area;
radius=20;
area=radius*radius*3.14159;
System.out.println("The area for the circle of radius"+radius+"is"+area);
}
}