MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Function main

C++/Code/factorialUsingFunction.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12int main(){
13 int n;
14 cin>>n;
15 cout<<factorial(n)<<endl;
16 cout<<factorial(n-1)<<endl;
17 cout<<factorial(n+1)<<endl;
18 cout<<factorial(n+2)<<endl;
19 cout<<factorial(n+4)<<endl;
20}

Callers

nothing calls this directly

Calls 1

factorialFunction · 0.70

Tested by

no test coverage detected