Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
int fact(int n)
4
{
5
if(n==0)return 1;
6
return fact(n-1)*n;
7
}
8
int nCr(int n,int r)
9
{
10
int num,den;
Callers
1
nCr
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected