Created
September 15, 2018 01:18
-
-
Save completejavascript/a387c49aba48e83f5f0659c547dfa0c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int Combination(int k, int n) | |
{ | |
int r = 1; | |
for (int i = 1; i <= k; i++,n--) | |
r = r * n / i; | |
return r; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment