#include <stdio.h>
int main()
{
int n,a,b,sum=1,s=0;
scanf("%d",&n);
for(a=1;a<=n;a+=2)
{
for(b=1;b<=a;b++)
{
sum=sum*b;
}
s=sum+s;
sum=1;
}
printf("n=%d,s=%d",n,s);
return 0;
}
求1!+3!+5!+……+n!
最新推荐文章于 2023-12-08 22:55:21 发布