MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / print

Function print

CPP/recursion/print_n_times.cpp:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#define mod 1000000007
7#define endl '\n'
8void print(int n){
9 if(n==0)
10 return;
11 cout<<n<<endl;
12 print(n-1);
13}
14int main(){
15 cin.tie(0)->sync_with_stdio(0);
16 int n;cin>>n;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected