405,336 views
32 votes
32 votes
You can write a function to find Fibonacci numbers using recursion.

How do you find the next number?


add five to the previous number

add one to the previous number

multiply the two previous numbers

add the two previous numbers

User Malhobayyeb
by
2.5k points

1 Answer

14 votes
14 votes

Answer:

Add the two previous numbers

Step-by-step explanation:

A recursive definition of the Fibonacci sequence would look like this, in python:

def fibonacci(n)

if n <= 1:

return n

else:

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

User Munahil
by
3.0k points