using namespace std; #include // int depth = 0; // globale void printspaces(int n) { for (int i=0;i f(" << n << ")\n"; if (n==0||n==1) res = 1; else res = f(n-1)+f(n-2); printspaces(depth); cout << "< " << res << endl; depth--; return res; } int main() { int n; cout << "n? "; cin >> n; cout << "f(" << n << ") = " << f(n) << endl; return 0; }