MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Exercises/Modules/Chapter 08/Soln8_07A.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6unsigned long long fib(size_t n);
7
8int main()
9{
10 size_t num{};
11 std::cout << "Good day, master. How many Fibonacci numbers shall I compute today?" << std::endl;
12 std::cin >> num;
13
14 for (size_t i{1}; i <= num; ++i)
15 std::cout << "fib(" << i << ") = " << fib(i) << '\n';
16}
17
18unsigned long long fib(size_t n)
19{

Callers

nothing calls this directly

Calls 1

fibFunction · 0.70

Tested by

no test coverage detected