C program to find nCr and nPr
C program to find nCr and nPr C program to find nCr and nPr, remember, nCr = n!/(r!*(n-r)!) and nPr = n!/(n-r)!. C program to find nPr and nCr using a function #include <stdio.h> long factorial(int); long find_ncr(int, int); long find_npr(int, int); int main() { int n, r; long ncr, npr; printf(“Enter the value…
Read more