public class JavaMath
{
public static void main(String[] agrs)
{
double num;
num=showLength(7,10);
System.out.println("The length is "+num);
}
public static double showLength(int a,int b)
{
return Math.sqrt(a*a+b*b);
}
}
java中Math函数的使用实例
最新推荐文章于 2023-03-23 00:00:26 发布