calcKoverI function

num calcKoverI(
  1. int k,
  2. int i
)

Implementation

num calcKoverI( int k, int i ) {
	int nom = 1;

	for ( int j = 2; j <= k; ++ j ) {
		nom *= j;
	}

	int denom = 1;

	for ( int j = 2; j <= i; ++ j ) {
		denom *= j;
	}

	for ( int j = 2; j <= k - i; ++ j ) {
		denom *= j;
	}

	return nom / denom;
}