1234567891011121314151617181920 |
-
-
-
- import java.math.BigInteger;
-
- public class Factorial {
-
- public BigInteger factorialOf(int value){
-
- BigInteger factorialOf = new BigInteger("1");
-
- for (int i = value; i > 0; i--) {
- factorialOf = factorialOf.multiply(BigInteger.valueOf(i));
- }
-
- return factorialOf;
- }
-
- }
|