Technicalsymposium.com-Free Email Alerts


Enter Your Email :

Important Note:Login & Check Your Email Inbox and Activate Confirmation Link

Subscribe & Get All Fresher Jobs Information & Study Materials PDF and Projects- Free Download

C Programming Books PDF


C Aptitude Question Papers


Datastructure Programming in C



C Programming & Tech Interview Materials PDF- Free Download

C Program For NCR VALUE BY RECURSIVE FUNCTION.

void main()

{

int n,r,ncr;

clrscr();

printf("Enter the n and r value:");

scanf("%d%d",&n,&r);

ncr=fact(n)/((fact(r))*(fact(n-r)));

printf("n=%d\n",fact(n));

printf("r=%d\n",fact(r));

printf("n-r=%d\n",fact(n-r));

printf("the ncr =%d\n",ncr);

getch();

}

int fact(int a)

{

int c=1,i;

for(i=1;i<=a;i++)

{

c=c*i;

}

return(c);

}

Download All C Programming & Study Materials PDF