Join the social network of Tech Nerds, increase skill rank, get work, manage projects...

• # A program to find out NCR factor of given number in C language

• 0
• 0
• 0
• 0
• 0
• 0
• 0
• 0
• 3.14k
Comment on it

ncr means : combination in terms of mathematics.We have to find out the perfect combination of given values. In the mathematics nCr has defined as nCr = n! /((n-r)! * r!)

```    #include
int main(){
int n,r,ncr;
printf("Enter any two numbers->");
scanf("%d %d",&n,&r);
ncr=fact(n)/(fact(r)*fact(n-r));                              //fact denotes factorial of a number .
printf("The NCR factor of %d and %d is %d",n,r,ncr);
return 0;
}
int fact(int n)                                                    // this is a factorial finding function
{
int i=1;
while(n!=0){
i=i*n;
n--;
}
return i;
}

```
```  sample output:
6 4
The NCR factor of 6 and 4 is 15
```

## 0 Comment(s)

OR
OR
Register

OR
Fill out the form below and instructions to reset your password will be emailed to you:

• Hire
• Post Projects

### Post Projects

• All at 0 Cost ....
• Post Tech Job
• Select Best Bidder
• Track the Project
• Approve Work and Pay safely
• Browse Nerds
• Work
• Find Projects Find Projects
• UI Design and UX
• Software Engineering
View more...
View less...
• Marketing
• General
• Manage
• Company Company

### Manage Company

• All at 0 Cost ....
• Manage Company and Employee Profiles
• Company wide Employee Productivity Reports
• Knowledge Sharing and Collaboration Tools
• Get Sales Lead and Bid for Tech Projects
• Send Invoices and Receive Payment Safely
• Learn
• Nerd Digest Nerd Digest
• UI Design and UX
• Software Engineering
View more...
View less...
• Marketing
• General
• Tech Q & A Tech Q & A
• UI Design and UX
• Software Engineering
View more...
View less...
• Marketing
• General