Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ dec
Function
dec
CPP/recursion/rec_direction.cpp:8–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#define mod 1000000007
7
#define endl
'\n'
8
void dec(int n){
9
if(n==0)
10
return ;
11
cout<<n<<
" "
;
12
dec(n-1);
13
14
}
15
16
//the code will go towards base case
17
void inc(int n){
Callers
2
inc
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected