Factorial.java 299B

123456789101112131415161718
  1. import java.util.Scanner;
  2. import java.math.BigInteger;
  3. public class Factorial {
  4. public BigInteger factorialOf(Integer value){
  5. BigInteger f = new BigInteger("1");
  6. for(int i=1; i<= value; i++)
  7. f = f.multiply(BigInteger.valueOf(i));
  8. return f;
  9. }
  10. }