#include "library.h" const int max = 50; int fib(const int n) { if (n <= 2) return 1; const int a = fib(n-1); const int b = fib(n-2); return a+b; } void main() { int x = 1; while (x < max) { cout << "fib(" << x << ") = " << fib(x) << "\n"; x = x + 1; } }