The nCr also termed as a combination. Combinations are a way to calculate the total outcomes of an event where the order of the outcomes does not matter. To calculate combinations, we will use the formula nCr = n! / r! * (n – r)! , where n represents the total number of items, and r represents the number of items being chosen at a time.
Output:
Enter the value of num = 10
need an explanation for this answer? contact us directly to get an explanation for this answerEnter the value of r = 4
10 C 4 = 210