subject
Mathematics, 15.11.2021 01:30 heart80941

The following while loop prints multiples of 10 from 0 to 100 with a space in between. int i = 0; // initialize variable
while (i <= 100) // boolean condition
{
System. out. print(i + " "); // print value of i followed by a space
i+= 10; // increment variable
}

Question

Consider the while loop example above. Assume you want to adjust the loop to print only the values from 100 to 0, decremented by 10 (i. e., 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0). What must the loop elements - counter initialization, conditional statement, and counter modification - be set to in order to accomplish the goal?

Review all options listed below carefully. You MUST select 3 answers; one for each element/category:

Counter initialization
Conditional statement
Counter modification
a. int i = 0;
b. int i = 1;
c. int i = 10;
d. int i = 100;
e. (i <= 0)
f. (i >= 0)
g. (i <= 100)
h. (i >= 100)
i. i++;
j. i--;
k. i+=10;
l. i-=10;

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 18:50
The number of fish in a lake can be modeled by the exponential regression equation y=14.08 x 2.08^x where x represents the year
Answers: 3
question
Mathematics, 21.06.2019 20:00
Need ! the total ticket sales for a high school basketball game were $2,260. the ticket price for students were $2.25 less than the adult ticket price. the number of adult tickets sold was 230, and the number of student tickets sold was 180. what was the price of an adult ticket?
Answers: 1
question
Mathematics, 21.06.2019 22:00
Fatima plans to spend at least $15 and at most $20 dollars on sketch pads and pencils. if she buys 2 sketchpads, how many pemcils can she buy while staying in her price range? fatima can buy between and pencils. ? (type whole numbers. use ascending? order.)
Answers: 1
question
Mathematics, 22.06.2019 04:30
Given: tangent if m 1 = 30° and m = 20°, then m = 10 40 80
Answers: 1
You know the right answer?
The following while loop prints multiples of 10 from 0 to 100 with a space in between. int i = 0;...
Questions
Questions on the website: 13722360