【资料图】1、int getValue(int n,int r){ if(r==0)return 1; if(r>0)return getValue(n,r-1)*(n-r+1)/r;}。本文分享完毕,希望对你有所帮助。