a = int(input("enter number"))
def multple(a):
total =1
for i in range(1,a+1):
total *= i
return total
print (multple(a))
练习1--python代码实现阶乘
猜你喜欢
转载自blog.csdn.net/Miracle1203/article/details/102937718
今日推荐
周排行