#include <stdio.h>
int Cal_Fact(int);
int main()
{
int n, r, ncr;
printf("
Please Enter the Values for N and R:
");
scanf("%d %d", &n, &r);
ncr = Cal_Fact(n) / (Cal_Fact(r) * Cal_Fact(n-r));
printf("
NCR Factorial of %d and %d = %d", n, r, ncr);
return 0;
}
int Cal_Fact(int Number)
{
int i;
int Factorial = 1;
for (i = 1; i <= Number; i++)
{
Factorial = Factorial * i;
}
return Factorial;
}
Code Example |
---|
C :: redis endpoint |
C :: C (K&R) |
C :: c type conversion |
C :: cut first part of string c |
C :: c++ convert to c online |
C :: increment c |
C :: WAP to create Database using array of structure & display it in C |
C :: under |
C :: c# Regex similar wor |
C :: how to devowel string in c program |
C :: obby übersetzung |
C :: too many arg |
C :: exponent calculator |
C :: time to apply pmfby |
C :: reverse number in c |
C :: Write a c program to add two numbers without using addition operator. |
C :: aws solution architect vs developer associate |
C :: c while loop |
C :: mongodb delete all documents |
Dart :: textfield border radius flutter |
Dart :: flutter check if string is number dart |
Dart :: flutter flotingactionbutton color |
Dart :: flutter textbutton autofocus |
Dart :: dart absolute value |
Dart :: typeof dart |
Dart :: velocity x circle |
Dart :: flutter cut string |
Dart :: put bottom sheet above keyboard flutter |
Dart :: flutter orientation |
Dart :: dart typeof |