#include<stdio.h>
void main()
{ int n,m,s,i; printf("From the keyboard input a number n: "); scanf("%d",&n); for( i=0;i<=n; i++) { m = m * i; s = s + m; } printf("%sd\n",s);
}
#include "stdafx.h"
#include<stdio.h> void main() { int n,m=0,s=0,i; printf("From the keyboard input a number n: "); scanf("%d",&n); for( i=0;i<=n; i++) { m = m * i; s = s + m; } printf("%sd\n",s); }