subject
Advanced Placement (AP), 25.03.2020 05:46 Ladyt916

Consider the following code segment, which is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 + 20 + ... + 100), in the variable total.

int x = 100;

int total = 0;

while( /* missing code */ )

{

total = total + x;

x = x - 10;

}

Which of the following can be used as a replacement for /* missing code */ so that the code segment works as intended?

A. x < 100

B. x <= 100

C. x > 10

D. x >= 10

E. x != 10

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 06:00
How does act ii, scene 3, when romeo goes to friar laurence’s cell at dawn, contrast with the action of the night before, when romeo and juliet declare their love? what do dawn and daytime signify to romeo and juliet’s relationship, and how does this scene tie into the light/darkness visual motif of the play? in the space below, analyze the scene’s importance in these respects. use specific details from the text to support your analysis.
Answers: 3
question
Advanced Placement (AP), 24.06.2019 02:00
If the limit, as x approaches infinity (or negative infinity) of a function is equal to a, we say that the line y = a is a of the function f.
Answers: 2
question
Advanced Placement (AP), 24.06.2019 23:30
What are the major trends and specialties in psychology?
Answers: 1
question
Advanced Placement (AP), 26.06.2019 00:30
What is the american psychological association’s ethical principle of psychologists and code of conduct based upon? a. the work of a dozen world-renowned philosophers and ethical savants. b. the feedback of thousands of psychologists and their ethical struggles. c. the regulatory power and authority of the united states constitution. d. the hippocratic rules and guidelines of medical practitioners and surgeons. select the best answer from the choices provided a b c
Answers: 1
You know the right answer?
Consider the following code segment, which is intended to store the sum of all multiples of 10 betwe...
Questions
question
Mathematics, 08.09.2019 16:10
question
Biology, 08.09.2019 16:10
Questions on the website: 13722362