Converting Combination nCr in C to Python

前端 未结 0 1670
说谎
说谎 2020-12-09 12:48

I have the code below for combinations in C:

double factorial(double x) {
 double i;
 double result=1;
 if (x >= 0) {
  for(i=x;i>1;i--) {
   result = r         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题