计算n的阶乘
include<stdio.h>
int main()
int i = 0;
int tep = 1;
int n = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
tep = tep*i;
}
printf("%d", tep);
return 0;
}
计算n的阶乘
include<stdio.h>
int main()
int i = 0;
int tep = 1;
int n = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
tep = tep*i;
}
printf("%d", tep);
return 0;
}