Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/modern-cpp-tutorial
/ fibonacci
Function
fibonacci
code/2/2.2.cpp:16–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
}
15
16
constexpr int fibonacci(const int n) {
17
return n == 1 || n == 2 ? 1 : fibonacci(n-1)+fibonacci(n-2);
18
}
19
20
int main() {
21
char arr_1[10];
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected