0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5367: 【29课】【3174】求阶乘
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:265
Solved:110
Submit
Submit Record
Statistics
ShowOff!
Description
利用for循环求
n
!
的值。提示,
n
!
=
1
×
2
×
.
.
.
×
n
。
Input
输入一个正整数
n
,对于所有数据,
1
≤
n
≤
20
。
Output
输出
n
!
的值。
Sample Input
Copy
4
Sample Output
Copy
24
Source/Category
一本通编程启蒙
循环结构
Submit
Submit Record
Statistics
ShowOff!