#include<stdio.h>标签:return,递归,23,int,result,func,printf,基本功 From: https://blog.51cto.com/u_15983838/6092946
int func(int a)
{
int result=0;
printf("%d\n",a);
if (a==1)
{
return 1;
}
while(a!=1)
{
return result=a*func(a-1);
}
//return result; //无限循环
}
int main()
{
int a=0,result=0;
scanf("%d",&a);
result=func(a);
printf("%d\n",result);
return 0;}