#include<stdio.h> double fact(int n); int main(void) { int m,n; double y,x; printf("Enter n:"); scanf_s("%d",&n); printf("Enter m:"); scanf_s("%d",&m); x=fact(n)*fact(m-n); y=fact(m)/x; printf("result=%.0f ",y); return 0; } double fact(int n) { int i; double product; product=1; for(i=1;i<=n;i++){ product=product*i; } return product; }