QUESTION

Text
Image


Given the program below, fill in all necessary blanks: // This programs demonstrates a recursive function // that calculates Fibonacci numbers. \#include <iostream> int fib(int); int main() \{ cout $<<$ "The first 10 Fibonacci numbers are: $\backslash n$ "; for (int $x=0 ; x<$ $; \mathrm{x++}$ cout $<<$ fibl $1<<"$ " $<$ endl; \} int (int $n$ ) \{ if ( $<=0$ ) return else if $(n==1)$ return $f b(n-1)+f i b(n-$ ) ; \}

Public Answer

FA6ALO The First Answerer