摘要: #includeint main(){int m,n;float fact(int n);float result;scanf("%d%d",&m,&n);if(m>=n&&n>=0){result=fact(m)/(fact(n)*fact(m-n));}else {return 0;}printf("%.0f\n",result);return 0;}float fact(int n){int i;float sum;sum=1;for(i=1;i<=n;i++){sum=sum*i;}return 阅读全文
posted @ 2013-12-05 11:08 dihuanting 阅读(220) 评论(0) 推荐(0) 编辑