MCPcopy 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

2using namespace std;
3
4int 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
12int main() {
13 int t;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected