練習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))
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章