Check the base cases first within the function ComputeFibonacci, which only accepts one parameter, N. Return 0 if N is equal to 0.If N is 1, then return 1. Otherwise, use N-1 and N-2 as parameters when calling the ComputeFibonacci function.
Whole numbers are used in the Fibonacci sequence, which goes as follows: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34,... Each term in this endless series, which begins with 0 and 1, is the combination of the two terms before it.
According to a lot of sources, Leonardo Fibonacci is credited with discovering or "inventing" this sequence. The Italian mathematician Leonardo of Pisa, who was born about A.D. 1170, was first recognized by this name.
To know more about Fibonacci visit:
https://brainly.com/question/29764204
#SPJ4