public class ComputeArea {
public static void main(String args[])
{
final double PI=3.14159;
double area;
area=PI*10*10;
System.out.println("The area for the circle of 10 is"+area);
}
}
第2周:计算圆的面积
最新推荐文章于 2024-10-14 18:47:51 发布
public class ComputeArea {
public static void main(String args[])
{
final double PI=3.14159;
double area;
area=PI*10*10;
System.out.println("The area for the circle of 10 is"+area);
}
}