Search across blog, articles, projects, courses, and community posts
Read an integer n. Print n! (the product 1 * 2 * ... * n). By definition 0! = 1.
n
n!
1 * 2 * ... * n
0! = 1
Input: one integer n.
Output: n!.
0 <= n <= 15
5
120
0
1