import java.math.*;
import java.util.Scanner;
public class LargeNumber{
public static void main(String[] args){
BigInteger result=BigInteger.ONE;
Scanner cin=new Scanner(System.in);
int n=cin.nextInt();
for(int i=1;i<=n;i++){
result=result.multiply(new BigInteger(i+""));
}
System.out.println(result);
}
}
java求大数的阶乘
最新推荐文章于 2022-07-13 11:43:03 发布