public class Demo_1

{
         public static void main(String[] args)

         {

           double radius,C;
           double area;
           radius=5.5;
           area=radius*radius*Math.PI;
           C=radius*2*3.14150;
           System.out.println("the area for the circle of radius " + radius + " is " + area);
           System.out.println("the circumference for the circle of radius " + radius + " is "+ area);
           }
}

 

 

posted on 2017-09-25 08:35  华山论  阅读(1699)  评论(0编辑  收藏  举报