#include<stdio.h>
#include<conio.h>
long int fact(int x); // function prototype
void main()
{
int n,r,bino_cof;
clrscr();
printf("Enter the numbers n,r");
scanf("%d%d",&n,&r);
bino_cof= (fact(n)/(fact(n-r)*fact(r)));
printf("Binomial coefficient is %d ",bino_cof);
getch();
}
long int fact(int x)
{
int i,f=1;
for (i=1; i<=x; i++)
{
f= f*i;
}
return f;
}