编辑代码

#include <stdio.h>
int fun (int n)
{
if(n==1) return n;
else return n*fun(n-1);
}
int main() 
{
    printf("%d",fun(5));
}