#include<stdio.h
main ()
{
int n;/*求几的阶乘*/
float sun1=1,i,sum2=0;/*sum1是n!,sum2是n!的和*/(之所以定义为float是因为求的和的长度问题)
printf("please put into n");
scanf ("%d",&n);
if (n==1||n==0) { sum1=1; sum2=1; }
else
for (i=1;i<=n;i++) {sum1*=i; sum2=sum2+sum1; }
printf("sum1=%d,sum2=%d",sum1.sum2);
}