#include <stdio.h>
int main()
{
int a = 0;
int b = 1;
int n = 0;
printf("请输入正整数n\n");
scanf("%d", &n);
for (a = 1; a <= n; a++)
{
b *= a;
}
printf("%d", b);
return 0;
}
11-01
479
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-19
399
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)