#求1到5阶乘之和
#
a = 1
sum = 0
for i in range(1,6):
    a = i*a
    sum = sum+a
print(sum)

 

相关文章: