📅  最后修改于: 2022-03-11 14:47:18.949000             🧑  作者: Mango
代码示例1
#factorial of n integer
a=int(input('Enter a number :'))
fact=1
for i in range(1,n+1):
fact*=i
print('Factorial of',a,'is',fact)