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
I need help with this ​
Natali [406]
I’m pretty sure this is correct.

8 0
3 years ago
PLEASE HELP ME FIND THE CORDINATES FOR THESE GRAPHSSS PLEASE ILL GIVE YOU BRAINLIEST AND 25 POINTS
tia_tia [17]
1. (-1,-1) (2,-2)
2. (-3,0) (2,0)
3. (-4,-3) (-1,2)
7 0
3 years ago
Solve for x. Round to the nearest tenth of a degree, if necessary.
Ahat [919]
I did this last year the answer is 9.5
3 0
3 years ago
Pleaseee helpppp last question
kap26 [50]

Answer: y=-4x-3

Step-by-step explanation:

just draw all the lines on a graph

8 0
3 years ago
Geometry question on finding x.
Dmitrij [34]

Answer:

x =63^o

Step-by-step explanation:

<u>Given </u><u>:</u><u>-</u><u> </u>

  • \text{ $\overline{MN} $ and $\overline{ML}$ are tangents .}

We know that the tangents are perpendicular to the radius at the point of contact . And here OLMN is a quadrilateral. Also we know that , the angle sum property a triangle is 360° .

<u>According</u><u> to</u><u> question</u><u> </u><u>:</u><u>-</u><u> </u>

\implies x + 117^o + 90^o +90^o = 360^o \\\\\implies x + 297^o = 360^o \\\\\implies x = 360^o - 297^o \\\\\implies x = 63^o

<u>Hence</u><u> the</u><u> </u><u>value</u><u> of</u><u> x</u><u> </u><u>is </u><u>6</u><u>3</u><u>°</u><u> </u><u>.</u>

6 0
3 years ago
Other questions:
  • Ella has 27 apples if Ella uses three apples to make each tart how many Tarts can teller make​
    11·1 answer
  • Explain how showing fractions with models and a number line are alike and different
    11·1 answer
  • Please help me it’s on probability
    9·1 answer
  • Three consecutive integers add up to more than 33. What is the smallest set of integers they could be?
    11·1 answer
  • Plz help me it’s important
    10·1 answer
  • Plz help me it worth 50% of my grade tell wethere it’s proportional of not
    9·1 answer
  • Write the mixed numbers as fractions <br> 1/1/2
    13·1 answer
  • Solve for x.................
    7·1 answer
  • How long does it take to pay off the higher-interest card?
    14·1 answer
  • A cake shop offers circular cakes with diameters of 8 in., 12 in., and 15 in. Identify the area of each cake
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!