LearnPy Hub
← Recursion & Lambda problems
Easy

Recursive Factorial

Write a recursive fact(n) and print fact(n).

Input

One integer 0 ≤ n ≤ 20.

Output

n!

Sample 1

Input
5
Output
120

Sample 2

Input
0
Output
1
solution.py
Output appears here
Recursive Factorial · Python practice problem · LearnPy Hub