#C1717. Factorial Computation
Factorial Computation
Factorial Computation
Given a non-negative integer \( n \), compute its factorial \( n! \). The factorial is defined as:
\( n! = \begin{cases} 1, & n = 0 \\ n \times (n-1)! & n > 0 \end{cases} \)
For example, \( 4! = 24 \) and \( 5! = 120 \). You must read the input from standard input and output the result to standard output.
inputFormat
The input consists of a single non-negative integer \( n \) (\( 0 \leq n \leq 20 \)). The integer is provided on a single line.
outputFormat
Output a single integer representing the factorial of \( n \).
## sample0
1