C Program to find nCr using RecursionRajesh SinghAug 16, 20221 min readC Program to find nCr: #include<stdio.h>#include<conio.h>int fact(x){int i, f=i;for(i=1;i<=x;i++){f=f*i;}return(f);}void main(){int n,r, A;printf("Enter the no.: ");scanf("%d%d", &n,&r));A=fact(n)/fact(r)*fact(n-r);printf(%d",A);getch();}Output:Enter the no.: 2 12
Overview of Future skills and Cyber Security MCQQ1. Secret key encryption is known as..... A. Secret encryption B. Private encryption C. Symmetric encryption D. ...
Soft skills-Personality Development MCQQ1. Which of the following is NOT a hard skill? A. Typing Speed B. Machine Operation C. Time Management D. Coding Ans: C...
Comentários