请教奇数阶乘和 与 约数倍数改错
main(){
long int s=0,t=1;
int n;
for(n=1;n<=10;n++)
{{if(n%2==0)t=t*n;continue;}
t=t*n;
s=s+t;
}printf("%ld",s);
}
和
main()
{
int a,b,i,t,j,k,l;
scanf("%d%d",&a,&b);
if(a<b)
{t=a;a=b;b=t;}
for(t=2;i=a/t>1;t++)
{
if(a%i==0&&b%i==0)break;
}
j=a%i;
k=b%i;
l=j*k*i;
printf("max=%d,min=%d",i,l);
}