123456789101112131415161718 |
-
-
- import java.util.Scanner;
- import java.math.BigInteger;
-
- public class Factorial {
-
- public BigInteger factorialOf(Integer value){
- BigInteger f = new BigInteger("1");
-
- for(int i=1; i<= value; i++)
- f = f.multiply(BigInteger.valueOf(i));
-
- return f;
- }
-
- }
|