Fibonacci sequence

why is condition i<n? why not i<=n?

Hi @sirprashar, it totally depends on the initial value of i. If it’s i<0 then i<n will be used. Pls share the code here once so I can elaborate more.

Hi @sirprashar, pls mark your doubt as resolved.