n=int(input()) d=1 s=0 for i in range(1,n+1): d=d*i print(d) s=s+d print("La suma es: ",s)
To embed this project on your website, copy the following code and paste it into your website's HTML: