The fibonacci numbers are defines by the sequence f 1 = 1 f 2 =1 f n = f n-1 +f
ID: 3617014 • Letter: T
Question
The fibonacci numbers are defines by the sequencef1= 1 f2=1 fn= fn-1+fn-2
Reformulate that as
fold1 = 1 fold2 = 1 fnew = fold1 +fold2
after that discard fold2 which is no longer needed andset fold2 to fold1 and fold1 to fnew an appropriate number oftimes.
Implement a program that computes the fibonacci numbersin that way.
I have no idea what the heck this text book question fromc++ for everyone is asking for please help me steps would be muchappreciated will rate lifesaver!
f1= 1 f2=1 fn= fn-1+fn-2
Reformulate that as
fold1 = 1 fold2 = 1 fnew = fold1 +fold2
after that discard fold2 which is no longer needed andset fold2 to fold1 and fold1 to fnew an appropriate number oftimes.
Implement a program that computes the fibonacci numbersin that way.
I have no idea what the heck this text book question fromc++ for everyone is asking for please help me steps would be muchappreciated will rate lifesaver!
Reformulate that as
fold1 = 1 fold2 = 1 fnew = fold1 +fold2
after that discard fold2 which is no longer needed andset fold2 to fold1 and fold1 to fnew an appropriate number oftimes.
Implement a program that computes the fibonacci numbersin that way.
I have no idea what the heck this text book question fromc++ for everyone is asking for please help me steps would be muchappreciated will rate lifesaver!