本题中关于C++保留小数位数的方法参考了下面这篇文章:
https://blog.csdn.net/qq_41758381/article/details/87272244
编写函数fun,它的功能是:根据以下公式求P的值,结果由函数值带回。m与n为两个正整数且要求m>n。
P=m!/n!(m-n)!
例如:m=12,n=8时,运行结果为495.000000。
#include <iostream>
#include <iomanip>
using namespace std;
int JC(int n)