@@ -0,0 +1,361 @@
+import java.math.BigInteger;%0A%0Apublic class Factorial %7B%0A%0A    public BigInteger factorial(Integer number) %7B%0A        return factorial(number, BigInteger.ONE);%0A    %7D%0A%0A    private BigInteger factorial(Integer number, BigInteger accumulator) %7B%0A        return number %3E 0 ? factorial(number - 1, accumulator.multiply(BigInteger.valueOf(number))) : accumulator;%0A    %7D%0A%0A%7D

Add 1 Project