【例29.1】 求阶乘
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
利用for循环求的值。
提示,。
输入格式
输入一个正整数,对于所有数据,。
输出格式
输出的值。
样例
4
24
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
利用for循环求n!的值。
提示,n!=1×2×...×n。
输入一个正整数n,对于所有数据,0≤n≤20。
输出n!的值。
4
24
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.