Return the product of every whole number from 1 up to n. 5 gives 120. The factorial of 0 is 1.
int factorial(int n)
Examples
There are also 4 hidden tests you can't see. Solve the problem, not the examples.