Accepted
代码
#include<stdio.h>
int main()
{
int a,b,sum;
scanf("%d",&a);
for(b=1,sum=1;b<=a;b++)
sum=sum*b;
printf("%d",sum);
return 0;
}
#include<stdio.h>
int main()
{
int a,b,sum;
scanf("%d",&a);
for(b=1,sum=1;b<=a;b++)
sum=sum*b;
printf("%d",sum);
return 0;
}