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
What value of b will cause the system to have an infinite number of solutions? y=6x-b -3x+1/2y=-3
Serhud [2]

Answer:

b = 6

Step-by-step explanation:

solve the second equation for 'y':

-3x + 1/2y = -3

add 3x to each side to get:

1/2y = 3x - 3

multiply all terms by 2 to eliminate the denominator to get:

y = 6x - 6

now compare '6x-6' with '6x-b'

you want both expressions to be equal because then there are an infinite number of solutions:

b = 6

7 0
3 years ago
Find the midpoint of the line segment joining the points p1 and p2 <br> P1=(3,-5);p2=(5,-1)
swat32
Find mid pt formula is
x \: intercept \: \frac{x {}^{2} + x{}^{1} }{2} \\ y \: intercept\frac{y {}^{2} + y {}^{1} }{2}
so the answer is
x \: intercept \: \\ \frac{3 + 5}{2} = 4
y \: intercept \: \\ \frac{( - 5) + ( - 1)}{ 2} = - 3
mid pt is (4,-3)
6 0
4 years ago
If 10^x = 5, then what is x?
REY [17]

Answer:

what is ∧

Step-by-step explanation:

8 0
3 years ago
3) -x + 5 = -11x + 25
konstantin123 [22]

Answer:

x=2

Step-by-step explanation:

-x+5=-11x+25

add +x on both sides -11x+x =-10x

-10x+25=5

subtract 25 on both sides

you get -10x=-20

x=2

6 0
3 years ago
Express the fraction in the simplest form 36/63.
enyata [817]
The answer is 4/7. Hope I was able to help

4 0
3 years ago
Read 2 more answers
Other questions:
  • 8.
    15·1 answer
  • Trina employer purchased a health insurance plan that's costs $550 per month. Trina pays $85 toward the plan each month. What is
    10·2 answers
  • Use the diagram of the right triangle above and round your answer to the nearest hundredth. If m <br> Answer choices: <br><br> A
    5·2 answers
  • What is 14 2/5 divided 3/8
    14·2 answers
  • Write 3.7 repeating as a mixed number
    10·1 answer
  • How to solve a two step equation
    11·2 answers
  • HELPPP ASAP WILL MARK BRAINLEST!!!!!!
    10·1 answer
  • Help if you want brianleist!! :) uhm don't mind update- NO LINkS- Thank you to those who help! :)
    6·1 answer
  • There are 20 families living in the Willbrook Farms Development. Of these families, 10 prepared their own federal income taxes f
    10·1 answer
  • Solve for x. You must write you answer in fully simplified form. -11 = -8x
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!