阶乘求和

b=int(input())
a=1
c=0
for i in range(1,b+1):
    a=a*i
    c=a+c
print(c)

 

posted @ 2020-03-30 20:54  李嘉豪28  阅读(194)  评论(0)    收藏  举报