package com.hanqi.yzljs;
public class yzljs
{
public static void main(String[] args)
{
final double PI = 3.1415926;
double r =3.0;
double c =2*PI*r;
double s = PI*r*r;
System.out.println("圆的周长="+c+" 圆的面积="+s);
}
}
圆的周长=18.849555600000002 圆的面积=28.274333400000003