BigInteger* 是您的课程。它可以存储看似 任意大小的 整数 。 *
static BigInteger fact(BigInteger num) { if (num.equals(BigInteger.ONE)) return BigInteger.ONE; else return num.multiply(fact(num.subtract(BigInteger.ONE))); }
BigInteger* 是您的课程。它可以存储看似 任意大小的 整数 。 *
static BigInteger fact(BigInteger num) { if (num.equals(BigInteger.ONE)) return BigInteger.ONE; else return num.multiply(fact(num.subtract(BigInteger.ONE))); }