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), 22.06.2019 08:00
Nscience we assume that the force of gravity behaves the same way beyond earth. using this assumptions, we can use the gravitational forces from the sun and moon to explain a: the tides b: a lunar eclipse c: the length of a day d: the revolution of the earth hurry i am timed : ) will give brainliest
Answers: 2
question
Advanced Placement (AP), 25.06.2019 02:00
98 points! include an answer and in advance!
Answers: 1
question
Advanced Placement (AP), 26.06.2019 02:30
Gi gi di g i d i d i i f o u n d y o u
Answers: 1
question
Advanced Placement (AP), 27.06.2019 06:50
According to newton's 3rd law of motion, an action creates a. an accelerated reaction b. an equal action c. an equal and opposite reaction d. a force of equal action
Answers: 2
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
Chemistry, 25.09.2019 14:10
question
Mathematics, 25.09.2019 14:10
Questions on the website: 13722361