Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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>
2
using namespace std;
3
int fun(int n){
4
if(n>100)
5
return n-10;
6
else
7
return fun(fun(n+11));
8
}
9
int main(){
10
cout<<fun(95);
11
return 0;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected