alyssagibson6057
alyssagibson6057
19.12.2019 • 
Mathematics

Fill in the code to complete the following function for computing a fibonacci number. public static int fib(int index) { if (index == 0 || index == 1) // base case else // reduction and recursive calls return fib(index - 1) + fib(index - 2); }

Solved
Show answers

Ask an AI advisor a question