#include "library.h" int fib(const int previous, const int current, const int how_far_to_go) { if (how_far_to_go == 1) return current; else return fib(current, current + previous, how_far_to_go - 1); } int fib(const int n) { return fib(1, 1, n); } void main() { int x = 1; while (x < 50) { cout << "fib(" << x << ") = " << fib(x) << "\n"; x = x + 1; } }