#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int n=0;
int i=0;
int adc=1;
int sum=0;
for(n=1;n<=i;n++)
{
adc=adc*n;
sum=sum+adc;
}
printf("sum=%d\n",sum);
return 0;
}
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int n=0;
int i=0;
int adc=1;
int sum=0;
for(n=1;n<=i;n++)
{
adc=adc*n;
sum=sum+adc;
}
printf("sum=%d\n",sum);
return 0;
}