Skip to content
>_
LearnPy Hub
☰ Menu
Learn
Practice
Compiler
Arena
Contest
About
◐
← 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
☀ Light
Clear
▶ Run
▶ Run samples
Submit
Output appears here
Factorial With a Loop · Python practice problem · LearnPy Hub