编辑代码

long f;
if(n==0||n==1)
   f=1;
else
   f=n*fun(n-1);
return f;