MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / fact

Function fact

Arrays/NCRcombination.c:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int fact(int n)
4{
5 if(n==0)return 1;
6 return fact(n-1)*n;
7}
8int nCr(int n,int r)
9{
10 int num,den;

Callers 1

nCrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected