#P5739. 【深基7.例7】计算阶乘

【深基7.例7】计算阶乘

Problem Description

Find n!n!, that is, 1×2×3×n1 \times 2 \times 3 \dots \times n.

Challenge: Try to complete this task without using loop statements (for, while).

Input Format

The first line contains a positive integer nn.

Output Format

Output a positive integer, representing n!n!.

3
6

Hint

Constraints: It is guaranteed that 1n121 \leq n \le 12.

Translated by ChatGPT 5