12345678910111213141516171819 |
-
-
- import java.util.*;
- import java.math.BigInteger;
-
- public class Factorial {
-
- public BigInteger factorialOf(Integer value){
- BigInteger factorial = BigInteger.ONE;
- int number = 1;
- for (int i = value; i > 0; i--) {
- factorial = factorial.multiply(BigInteger.valueOf(i));
- }
-
- return factorial;
- }
-
- }
|