1234567891011121314151617 |
-
-
-
- import java.math.BigInteger;
-
- public class Factorial {
-
- public BigInteger factorialOf(Integer value){
- BigInteger result = BigInteger.ONE;
- for (; value > 1; value--) {
- result = result.multiply(BigInteger.valueOf(value));
- }
- return result;
- }
-
- }
|