编辑代码
Python代码
3.11.0
2.7.17
运行
#求n的阶乘
n
=eval(input(
"请输入一个整数:"
))
s
=
1
for
i in range(
1
,n+
1
):
s
=s*i
print
(s)