对于Math类的一些相关练习

来源:互联网 发布:无向图最短路径算法 编辑:程序博客网 时间:2024/05/22 13:44
public class E0406
{
public static void main(String args[])
{
double s;
double r=0;
s=Integer.parseInt(args[0]);
r=Math.sqrt(s/Math.PI);
System.out.println("面积为"+s+"的圆的半径为"+r);
}
}
0 0