1. 程式人生 > >圓的周長和面積

圓的周長和面積

stat the area print sys 5.5 out args 3.1 println

Public class Area

{

public static void main(String[] args)

  {

double radius;

   double area;

double PI=3.14159;

double circle;

radius =5.5;

   circle=2 * PI *radius;

   area=radius*radius* PI;

System.out.println(" The area is" + area);

System.out.println(" The circle is" + circle);   

  }

}

圓的周長和面積