C語言求組合數C(n,m)

#include<stdio.h> int main() { int n,m; double n1,m1,o1; double fact(int n); printf("Enter n and m(m<=n):\n"); scanf("%d%d",&n,&m); n1=fact(n); m1=fact(m); o1=fact(n-m); printf("%0.1f\n",n1/(m1*o1));
相關文章
相關標籤/搜索