#include
int main()
{
int a,b,c=1,total=0;
int n;
scanf("%d",&n);
for(a=1;a{
for(b=1;b c *= b;
total += c;
液枝 c = 1;
吵盯 }
升埋和printf("total=%d",total);
return 0;
}
include
int main()
{
int fun(int n);
int i,n,sum=0;
scanf("%d",&n);
if(n<基圆=0||n>=10)
{
prinntf("Error ,Input the value of 1 to 9!\n");
return 0;
}
for(i=1;i
sum+=fun(n);
printf("谈锋粗含镇%d\n",sum);
return 0;
}
int fun(int n)
{
int i,sum=1;
for(i=1;i<=n;i++)
sum*=i;
return sum;
}