Nth fibonacci function

In the program shouldn’t the 5th fibonacci no. be 3 and so it should be i<=n-2 only. Why changed it to i<=n-1 later?

@paras.bisht you can do anything you like some start from 0th based indexing of fibo no some sites 1 based. (in the problem it will be given)