#K43277. Factorial Computation
Factorial Computation
Factorial Computation
This problem requires you to compute the factorial of a given non-negative integer n. The factorial of n, denoted as \(n!\), is defined as:
\[ n! = \prod_{i=1}^{n} i \]
with the special case \(0! = 1\).
Your task is to read the integer from the standard input and output the value of its factorial.
inputFormat
The input consists of a single line containing an integer \(n\) where \(0 \le n \le 12\).
outputFormat
Output a single line containing the factorial of \(n\). Make sure to handle the case when \(n = 0\) correctly.
## sample0
1
</p>