May-15-2021, 02:00 PM
(May-15-2021, 11:51 AM)Yoriz Wrote:a,b=1,1
has a wrong initial value.
The final return is returning the wrong thing.
Hi Joriz,
thank you for your reply. Fibonacci can take any initial values. It just returns a third value adding first and second value. What I do not understand is
1. why third value is 3 as opposed to 2 (1+1)
2. why fourth value is 5? Why is it not an addition of 1 and 3 (previous two numbers)?