Problem A: 用递归计算n!
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:22
Solved:11
Description
求n的阶乘的值。
n!=n*(n-1)*(n-2)*(n-3)*......*2*1
如n=4,则4!=4*3*2*1
n!=n*(n-1)*(n-2)*(n-3)*......*2*1
如n=4,则4!=4*3*2*1
Input
输入一个正整数n(n<=10)
Output
n!的值
Sample Input Copy
4
Sample Output Copy
4!=24