From a3a23ae88cfed7cddc8d34a293ab6cc38083f683 Mon Sep 17 00:00:00 2001 From: CharanTeja733 Date: Fri, 21 Mar 2025 00:36:21 +0530 Subject: [PATCH] Fix code in C++ file --- fixme.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fixme.cpp b/fixme.cpp index 547f2d9..9a0ef32 100644 --- a/fixme.cpp +++ b/fixme.cpp @@ -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; } @@ -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; } \ No newline at end of file