11137: 第四章:for循环结构《练习1:计算n的阶乘》
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:3
Solved:0
Description
计算 s = n!, n!表示n的阶乘, n!= 1*2*3*4*…*n ,其中n由键盘输入。输出s的值。
(n<=10)
Input
4
Output
24
Sample Input Copy
5
Sample Output Copy
120