Calculate The Combination Of N Objects Taken R At A Time

Write a program to calculate the combination of n objects taken r at a time

Combination is a selection of objects from a group such that (unlike permutations) the order of selection does not matter. The number of combinations on n objects taken r at a time is given by the formula n!/(r!(n-r)!) = n(n-1)(n-2)...(n-r+1)/r!

Input : 5, 2 Output : 10

Contributors

This program is made possible by the following contributors:

harshraj8843
Greeshmanth1
AMiracle-creator
Adelechka
roberanegussie
joao-vitor-souza
Larryking007
kshitijv256
PoweredByCaffein
grraghav120

Heart with ribbonBecome a SponsorHeart with ribbon

Become a sponsor and help us maintain and improve this project. Every contribution counts. Thank you!