Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ fact
Function
fact
CodeChef_problems/AEIOUHW/solution.cpp:4–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
using namespace std;
3
4
int fact(int num) // function to print factorial of a number num
5
{
6
if (num==0)
7
return 1;
8
else
9
return num*fact(num-1);
10
}
11
12
int main() {
13
int t;
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected