Factorial.java 279B

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