Welcome to CodeWars 10K

Code Challenges

Challenge 1: The 10k Takedown

Challenge 1: The 10k Takedown

Write a program that takes a number as input and outputs its factorial.

Example input: 5

Example output: 120

Cheat Sheet

Hint: Think recursively...