c=0
m=eval(input("请输入一个正整数:"))
for n in range(1,m+1):
s=1
i=1
while i<=n:
s=s*i
i=i+1
c=c+s
print(c)
运行以上程序,输入正整数3,则输出的结果c的值为_______。
结果是9