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 14:30
Is δ pmr similar to δ smn ? if so, which postulate or theorem proves these two triangles are similar?
Answers: 1
question
Mathematics, 21.06.2019 20:30
Asunflower was 20 1/2 inches tall. over the next 6 months, it grew to a height of 37 inches tall. what was the average yearly growth rate of the height of the plzzz write a proportion i will give you 100 points
Answers: 1
question
Mathematics, 21.06.2019 21:00
Solve this problem! extra ! 3025/5.5 = a/90.75
Answers: 1
question
Mathematics, 22.06.2019 01:10
Of jk j(–25, 10) k(5, –20). is y- of l, jk a 7: 3 ? a. –16 b.–11 c. –4 d.–1
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
question
Mathematics, 07.03.2021 19:50
question
History, 07.03.2021 19:50
question
English, 07.03.2021 19:50
question
Mathematics, 07.03.2021 19:50
question
Mathematics, 07.03.2021 19:50
Questions on the website: 13722359