int Fac(int n)
{
if (n <= 1)
return 1;
else
return n * Fac(n - 1);
} //括号里放的是方法(要循环的)(个人理解)
int main()
{
int n = 0;
scanf("%d", &n);
int ret = Fac(n);
printf("%d\n", ret);
return 0;
}
标签:return,递归,int,scanf,ret,阶乘,Fac From: https://blog.51cto.com/u_15838933/5798189