Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ func
Function
func
CPP/recursion/2_to_power_n.cpp:8–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#define mod 1000000007
7
#define endl
'\n'
8
int func(int n){
9
if(n==0)
10
return 1;
11
return (2*func(n-1));
12
}
13
int main(){
14
cin.tie(0)->sync_with_stdio(0);
15
int n;cin>>n;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected