LearnPy Hub
← Loops problems
Easy

Factorial With a Loop

Read n (0 ≤ n ≤ 20) and print n! using a loop.

Input

One integer.

Output

One integer.

Sample 1

Input
5
Output
120

Sample 2

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