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