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 13:30
Which of the following is an advantage of pure capitalism
Answers: 1
question
Advanced Placement (AP), 24.06.2019 02:30
Which group’s rights—human participants or nonhuman animals—are the most important to protect? why? not really a right or wrong answer, but give a detailed explanation
Answers: 1
question
Advanced Placement (AP), 24.06.2019 05:00
Summarize deleon's advice to the strikers
Answers: 2
question
Advanced Placement (AP), 24.06.2019 12:30
What is the effect of mori's introducing japanese terms especially ronin paragraph 6 at the beginning of her essay
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, 26.02.2020 00:16
question
Mathematics, 26.02.2020 00:16