← Problem book: C Lesson 35 of 96 · 10 XP

Factorial

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given n (0 ≤ n ≤ 20). Print n! = 1 · 2 · … · n. By definition 0! = 1.

Example

Input:

5

Output:

120

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.