【Combination】
[code]inputs: Num( numericsimple ), NumChosen( numericsimple ) ;condition1 = NumChosen >= 1 and Num >= NumChosen ;
if condition1 then
Combination = Factorial( Num ) / Factorial( Num - IntPortion( NumChosen ) )
/ Factorial( NumChosen )
else
Combination = -1 ;
[/code]
页:
[1]