A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://TheAlgorithms.github.io/C-Plus-Plus/d9/d89/fibonacci_8cpp_source.html below:

TheAlgorithms/C++: math/fibonacci.cpp Source File

Go to the documentation of this file. 33 // If the input is 0 or 1 just return the same (Base Case) 34 // This will set the first 2 values of the sequence 39 // Add the preceding 2 values of the sequence to get next 42

}

// namespace fibonacci 57

std::cout <<

"All tests have passed successfully!\n"

;

65 test

();

// run self-test implementations

static void test()

Self-test implementation.

int main()

Main function.

uint64_t fibonacci(uint64_t n)

Function to compute the n-th Fibonacci number.

Functions for Fibonacci sequence.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4