#include<iostream.h>
int Multi (int m, int n)//求m*....n;==m!*n/n!
{
int results;
m=m-1;
if((m+1)==n)
results=n;
else
{
results=(m+1)*Multi(m,n);
}
return results;
}
int Fabricate (int m, int n)//求Multi/(n*(m-n)!)
{
int result,a,b,M,N;
m=m-1;
M=m+1;
M++;
N=n;
if((m-n+1)==1)
result=1;
else
result=(m-n+1)*Fabricate(m,n);
a=Multi(M,N);
cout<<a<<endl;
b=n*result;
cout<<b<<endl;
return a/b; //+Multi()%results;
}
void main()
{
int m,n;
cout<<"Please enter the corresponding m and n:"<<endl;
cin>>m>>n;
//cout<<Multi(m,n)<<endl;
cout<<"Results:"<<Fabricate(m,n)<<endl;
}