1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Charra [1.4K]
3 years ago
6

Fill in the code to complete the following function for computing a Fibonacci number. public static int fib(int index) { if (ind

ex == 0 || index == 1) // Base case ________ else // Reduction and recursive calls return fib(index - 1) + fib(index - 2); }
Mathematics
1 answer:
Lubov Fominskaja [6]3 years ago
6 0

Answer:

return 0;

Step-by-step explanation:

The  Fibonacci numbers such that each number is the sum of the two preceding ones, but the first therm of the sequence cannot be built by this rule.

In that F_{0} = 0

Then you may define it in the base case

return 0;

You might be interested in
HELPPP PLEASEE BEST ANSWER IS BRAINLIEST. HELPPPP please best answer gets brainliest
tester [92]

Answer:

21w+3

Step-by-step explanation:

5w+9w+5+7w-2

14w+5+7w-2

21w+3

5 0
3 years ago
Read 2 more answers
In need help plz.....………
abruzzese [7]

Here you go, enjoy.

1. 8,8

2. 5,4

3. 4,4

7 0
3 years ago
The students who run the school store ordered 1440 pencils. They are putting them in packages of 6 pencils. About how many packa
chubhunter [2.5K]

Well I don't get what the other parts of the question is asking, but they can make 240 packs of pencils.

7 0
3 years ago
Work out<br><br> 1/3 + 2/9<br><br> Give your answer in its simplest form
Soloha48 [4]

Step-by-step explanation:

1/3 + 2/9 = 3/9 + 2/9 = 5/9

Topic: Fractions

If you like to venture further, feel free to check out my insta (learntionary). I'll be constantly posting math tips and notes! Thanks!

4 0
3 years ago
Read 2 more answers
Which choices are equivalent to the expression below?<br> Check all that apply.
gavmur [86]
There’s no answer choices..
5 0
2 years ago
Other questions:
  • True or false the base of a triangular pyramid is a triangle​
    10·2 answers
  • 13. Apply the rules for order of operations to simplify 2 + 3 − 4 + (5 × 4). A. 9 B. 24 C. 22 D. 21
    6·1 answer
  • HELP! ASAP!HELP!
    12·1 answer
  • Find the perimeter of a triangle with sides 2x+ 3,5x+8+x and 7x-2
    14·2 answers
  • 1. 35,12 2. 24,5 3. 10,14???
    7·1 answer
  • First down = 25 yards.
    9·1 answer
  • 6x – 2х + 8у – 6y simplified expression
    11·2 answers
  • 20. True or False<br> When you multiply or divide<br> by a negative number, you<br> flip the sign
    10·1 answer
  • Express each fraction or decimal as a percent.<br><br> 0.0043<br><br> 5.20<br><br> 3/8<br><br> 7/28
    13·1 answer
  • Can someone explain?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!