##### Ninja Library - Mathematical Function

# njCombination

Finds out combination

### FORMAT

`

  int njCombination( n, k )
  int n
  int k

`

### PARAMETER

  `n` | First parameter
  `k` | Second parameter

### RETURN

  Combination number

### DESCRIPTION

  Find out combination of extracting k units from n units (nCk=n!/(k!*(n-k)!).

### EXAMPLE

      #include <Shinobi.h>
      int n;
      	:
      n = njCombination(4, 3); /* n = 4 */
      	:

njCombination

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999