Please explain me why in the above video we run i till N-1 why not N?By running i till N we can actually get the value of Nth term.please explain
-nth-fibonacci-function
shresth_2000
(Shresth Srivastava)
July 31, 2020, 2:01pm
#1
vatsal38
(vatsal agarwal)
July 31, 2020, 2:08pm
#2
@shresth_2000
0th 0
1st 1
2nd 1
3rd 2
4th 3
5th 5
so 5th fibo is 5 not 8 thats why n-1