<span style="font-size:14px;">package Factorial;
public class Factorial {
public static long fac(long n)
{
if(n==1||n==0) return 1;
else return n*fac(n-1);
}
public static void main(String[] args)
{
System.out.println(fac(11));
}
}
</span>
N!
最新推荐文章于 2023-08-13 16:14:19 发布