练习1--python代码实现阶乘

a = int(input("enter number"))
def multple(a):
    total =1
    for i in range(1,a+1):
        total *= i
    return total
print (multple(a))
发布了36 篇原创文章 · 获赞 65 · 访问量 2903

猜你喜欢

转载自blog.csdn.net/Miracle1203/article/details/102937718
今日推荐