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
sertanlavr [38]
3 years ago
14

public static int recur(int x) { if (x >= 0) return x + recur(x - 1); return 0; } What is returned by the method call recur(9

)?
Advanced Placement (AP)
1 answer:
guapka [62]3 years ago
6 0
9 >= 0 so return 9 + ...
8 >= 0 so return 8 + ...
7 >= 0 so return 7 + ...
6 >= 0 so return 6 + ...
5 >= 0 so return 5 + ...
4 >= 0 so return 4 + ...
3 >= 0 so return 3 + ...
2 >= 0 so return 2 + ...
1 >= 0 so return 1 + ...
0 >= 0 so return 0 + ...
-1 is not >= 0 so return 0.

Now string together all the returns..
9+8+7+6+5+4+3+2+1+0+0=45

recur(9) returns 45
You might be interested in
Where were Native people living in North America
nordsb [41]

In North America you tend to see a lot more of them in the Western States and provinces than you do down East. I am currently out in the oilfield working on one of their reservations at Loon Lake, Alberta.

I hope this Helps.

Can I have brainliest?

8 0
3 years ago
When the bore is larger than the stroke, the engine is A. undersquared. B. free wheeling. C. oversquared. D. even.
masya89 [10]
The correct answer is C
oversqaured

it is also called short-stroke engine. Usually the bore diameter is<span> greater than its stroke length. This gives a bore/stroke ratio greater than 1:1.</span>




6 0
4 years ago
What are some ways you are preparing for your AP Exams (specifically Macro)
luda_lava [24]
Take advantage of the 10-minute planning time. ...
Remember that you may answer the questions in any order. ...
Don't restate the question. ...
Use correct terminology. ...
Use graphs wisely. ...
Label graphs clearly, correctly, and fully.
More items...
6 0
2 years ago
According to the video, what are General and Operations Managers expected to provide for a company? Check all that apply.
Monica [59]

Answer:

a vision

leadership

7 0
3 years ago
Read 2 more answers
What is (5/7)^3 evaluated
Tcecarenko [31]

Answer:

0.36443148.....

Explanation:

To evaluate the given question, we begin by solving for the figures in the bracket. After this is done, the figure obtained is then raised to the power of three or multiplied three times.

(5/7)

= 0.714285.....

The figure obtained is then raised to the power of three, thus;

(0.714285)^3

=0.36443148...

The value obtained here is a continuous or repeating figure so it continues to infinity.

7 0
3 years ago
Other questions:
  • If your BAL is .07, you can expect a drop in complex perfomance compared to the sober level
    11·1 answer
  • Which kinds of objects can become fossils
    15·2 answers
  • Does the 14th amendment apply outside the country?
    5·2 answers
  • Which two types of accounts offer tax benefits before saving?
    13·1 answer
  • NEED HELP ASAP I WILL GIVE BRAINLIEST!​
    10·2 answers
  • Why did the central place theory get developed?
    7·1 answer
  • What was the approximate temperature of the universe when the universe was just 1 second old?
    5·1 answer
  • ✝️WARNING JESUS✝️IS COMING✝️COPY AND PASTE THIS✝️DO MORE CAN SEE THIS✝️SHARE THE GOSPEL✝️JESUS IS KING
    12·2 answers
  • F(x) = e^(x^2)<br> Find f'(1.1)
    9·1 answer
  • An Atlanta school district wants to compare the effectiveness of a standard AP Statistics curriculum and a new "hands-on AP Stat
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!