...

/

Challenge: Compute Factorial of a Number

Challenge: Compute Factorial of a Number

This lesson brings you a challenge to solve.

Problem statement

Write a function that returns the factorial (!) of any n number. The factorial n!n! of a number nn is defined as:

n!=n∗(n–1)! ...