in the condition: Counter<=n+1
why +1 is added?
Loop condition not understanding
hey @kavit
if you don’t take
counter<=n+1
if counter<=n
in this case
print till (n-1)th fib
because indexing 0 bases
Fib no: 0 1 1 2 3 5 8
index : o 1 2 3 4 5 6