标签:enc 技术 [] out png ble rgs stat bsp
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);
}
}
作业: 1.8(圆的面积和周长)编写程序,使用以下的公式计算并显示半径为5.5的圆的面积和周长。
标签:enc 技术 [] out png ble rgs stat bsp
原文地址:http://www.cnblogs.com/jingjing1314/p/7590269.html