写了两次函数。
#includefloat fun(int m,int n){ float result,temp=1.0; int i; for(i=1;i<=m;i++) temp=temp*i; result=temp; return result;}
另外 要运行 还要自己加一个主函数的。