Respuesta :

Answer:

def computeFibonacci(n):

   if n == 0:

       return 0

   if n == 1:

       return 1

   else:

       return computeFibonacci(n-1) + computeFibonacci(n-2)

Explanation:

*The code is in Python.

Create a function called computeFibonacci that takes one parameter, n

If n is equal to 0, return 0

If n is equal to 1, return 1

Otherwise, return the total of the previous two numbers by calling the functions with parameters n-1 and n-2