Implement a function named factorial that has one parameter: an integer, n. It must return the value of n! (i.e., n factorial).
Locked stub code in the editor reads a single integer, n, from stdin and passes it to a function named factorial.
- 1 <= n <= 10
The function must return the value of n!.
Sample Input 0
Sample Output 0
We return the value of 4! = 4 x 3 x 2 x 1 = 24.