ncr means : combination in terms of mathematics.We have to find out the perfect combination of given values.
In the mathematics nCr has defined as nCr = n! /((n-r)! * r!)
printf("Enter any two numbers->");
ncr=fact(n)/(fact(r)*fact(n-r)); //fact denotes factorial of a number .
printf("The NCR factor of %d and %d is %d",n,r,ncr);
int fact(int n) // this is a factorial finding function
The NCR factor of 6 and 4 is 15