这是我的第一个递归问题,我不理解它,也不起作用。有任何想法吗?
int C;
int myFactorial;
int n = Integer.parseInt(objectsChooseField.getText());
int r = Integer.parseInt(chooseFromField.getText());
if (C == 1){
return 1;
}
return (C*(myFactionial(n!/(r!(n-r)))));
//C(n,r) = n!/(r!(n-r));
}