Problem4290--阶乘计算

4290: 阶乘计算

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 10  Solved: 6
[Status] [Submit] [Creator:]

Description

输入一个正整数n,输出n!的值。


其中n!=1*2*3*…*n。

Input

输入包含一个正整数n,n<=10

Output

输出n!的准确值。

Sample Input Copy

5

Sample Output Copy

120

HINT

请使用递归的方式求解。

Source/Category

递归