复习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);

  }

}

posted on 2017-09-07 17:29  蒙查查  阅读(313)  评论(0编辑  收藏  举报

导航