Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 475 Bytes

File metadata and controls

22 lines (14 loc) · 475 Bytes

020 factorial

📝 Instructions:

  1. Create a function named factorial(), which receives a number as a parameter and returns the factorial of the given number.

📎 Example input:

factorial(8)

📎 Example output:

40320

💡 Hint: