C Programs / ncr C Program

ncr = n! / r! (n-r)!

Program
Input Enter n and r values: 5 2
Output n=5 r=2 ncr=10


Home     Back