diff --git a/fixme.cpp b/fixme.cpp index 547f2d9..075f5f3 100644 --- a/fixme.cpp +++ b/fixme.cpp @@ -6,12 +6,12 @@ int first = 0, second = 1, next; cout << "Fibonacci Series: "; - for (int i = 0; i < n; i++) { - // FIXME: Print the first term correctly - cout << "?" << " "; + for (int i = 0; i < n+1; i++) {// changed i> n; - // FIXME: Call the function with correct argument - fibonacci(?); + // called the function properly + fibonacci(n); return 0; } \ No newline at end of file