FIBONACCI NUMBER

i<=n-1
Please explain why i<=n-1.
Please respond ASAP.

@beinggulfamraza i<=n-1 when you want 0 th based indexing for nth no as 5 will give 5.
if you do n-2 1th based then 5th will be 3
dont forget to hit like and mark resolved if cleared :smiley:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.