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

Function fun

CPP/recursion/nested_recursion.cpp:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include<iostream>
2using namespace std;
3int fun(int n){
4 if(n>100)
5 return n-10;
6 else
7 return fun(fun(n+11));
8}
9int main(){
10 cout<<fun(95);
11 return 0;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected