Combination Calculator (Factorial)

Medium
#loops #math

Input: `n` (int). Return: Factorial of `n` (Product of 1..n). Useful for calculating combinations.

Example

Input: 0
Output: 1
Need a hint?
  • Multiply numbers from 1 to n
Run your code to see output