In this code, we've started you out by setting up the array
F, and that we know
F[1]=2. Fix
the for-loop to run over the proper values of
n. Next program in the
recurrence relation into the
F[n]= line.
When done, try this recurrence relation: $F(n)=F(n-1)+F(n-2)$, given that $F(0)=0$ and $F(1)=1$. Evaluate all $F$'s from
$n=2$ to $10$. The numbers you generate are called "Fibonacci Numbers."