Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions fixme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

cout << "Fibonacci Series: ";
for (int i = 0; i < n; i++) {
// FIXME: Print the first term correctly
cout << "?" << " ";
// Print the first term
cout << first << " ";

// FIXME: Compute the next term correctly
next = ?;
// Compute the next term
next = first + second;
first = second;
second = next;
}
Expand All @@ -23,8 +23,8 @@
cout << "Enter the number of terms: ";
cin >> n;

// FIXME: Call the function with correct argument
fibonacci(?);
//Calling the function
fibonacci(n);

return 0;
}