diff --git a/fixme.cpp b/fixme.cpp index 547f2d9..5dc034e 100644 --- a/fixme.cpp +++ b/fixme.cpp @@ -8,13 +8,14 @@ cout << "Fibonacci Series: "; for (int i = 0; i < n; i++) { // FIXME: Print the first term correctly - cout << "?" << " "; + cout << first << " "; // FIXME: Compute the next term correctly - next = ?; + next = first + second; first = second; second = next; } + cout << endl; } @@ -24,7 +25,7 @@ cin >> n; // FIXME: Call the function with correct argument - fibonacci(?); + fibonacci(n); return 0; } \ No newline at end of file