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
. Amanda uses 1/3 of a cup of milk each time she makes a batch of pancakes. How many batches can she make if she only has 11/12
meriva

Answer:

2 Batches of pancakes

Step-by-step explanation:

6 0
4 years ago
(PLEASE ANSWER + 10 POINTS!!)
Burka [1]
A^2 + b^2 = c^2

297^2 + 394^2 = C^2

88209+155236=243445

take the square root of 243445

you get 493.4

which in your answer they're rounded

so your answer is 

C. 493
3 0
4 years ago
Read 2 more answers
Hot dogs are sold in packages of 8, and hot dog buns are sold in packages of 12. What is the smallest number of each that could
Andreyy89
The answer is four. It's like asking to give the least common denominator
7 0
3 years ago
Read 2 more answers
Help me plz I’m struggling with this
swat32

Answer:

if you zoom in a little bit and repost it i can help you

Step-by-step explanation:

5 0
4 years ago
PLS NEED HELP ASAP.
aalyn [17]

Answer:

GBAGAXCADSASC

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • What is the measure of < C
    10·1 answer
  • Anothony earns $24 000 a year. after a breif lay off he earns $18000
    5·1 answer
  • 3x+2y= 15 15 y = y= y=6x solve by substitution
    10·1 answer
  • An engine that’s being tested is coupled to a dynamometer that has a radius arm of 1.70 feet. The test data shows a speed of 5,0
    12·2 answers
  • Suppose the null hypothesis, H0, is: a sporting goods store claims that at least 70% of its customers do not shop at any other s
    5·2 answers
  • A high temperature of 128°F was recorded in a desert. Use the formula F = C + 32
    5·2 answers
  • For a certain value of k, the system
    7·1 answer
  • Use the graph to answer the questions on this quiz.
    8·1 answer
  • Name the marked angle in 2 different ways.
    9·1 answer
  • Addison painted her room. She had 505050 square meters to paint, and she painted at a constant rate. After 222 hours of painting
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!