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);
}
}
时间: 2024-10-09 22:08:29