C program to calculate and print the value of nCr

In the following program we are calculating and displaying the value of nCr. nCr can also be represented as C(n,r)
The formula is:
C(n,r) = n! / ( r!(n – r)! ). For 0 <= r <= n. Here ! represents factorial. For example: C(6, 2) = 6! / (2! * (6-2)!) => 720/(2 * 24) => 15
The same calculation we have done in the following program.