#K34127. Taco Factorial Calculation
Taco Factorial Calculation
Taco Factorial Calculation
Compute the factorial of a given positive integer n. The factorial, denoted as $$n!$$, is defined as:
$$n! = 1 \times 2 \times \cdots \times n$$
Your task is to read an integer from the standard input, compute its factorial, and output the result to the standard output.
Note: For this problem, you can assume that the input will be such that the factorial will fit in a 64-bit integer.
inputFormat
The input consists of a single integer n provided via standard input.
Example: 5
outputFormat
The output should be the factorial of n printed to standard output.
Example: For the input 5
, output should be 120
.
1
1