编写一个函数fun,求p=m!/(n!(m-n)!)的值,其中m与n为两个正整数,切要求m>n

日期:2016-09-19 07:14:06 人气:3

编写一个函数fun,求p=m!/(n!(m-n)!)的值,其中m与n为两个正整数,切要求m>n

#include //double fn(int x); double Cnr(int n,int r); void main() { int n,r; do { cout<<"Please enter n and r"<<endl; cin>>n>>r; if (n>0&&r>0&&n>r) cout<<"The value is:&qu
    A+
热门评论