#include <stdio.h>标签:return,int,scanf,程序,求法,printf,阶乘,main From: https://blog.51cto.com/u_15923331/6021157
int main()
{
int i = 1;
int n = 0;
scanf("%d", &n);
int r = 1;
for (i = 1; i <= n; i++)
{
r = i * r;
}
printf("%d\n", r);
return 0;
}
#include <stdio.h>标签:return,int,scanf,程序,求法,printf,阶乘,main From: https://blog.51cto.com/u_15923331/6021157
int main()
{
int i = 1;
int n = 0;
scanf("%d", &n);
int r = 1;
for (i = 1; i <= n; i++)
{
r = i * r;
}
printf("%d\n", r);
return 0;
}