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, 22.06.2019 00:30
Can someone me and explain..will award brainlest!
Answers: 2
question
Mathematics, 22.06.2019 02:30
Write a ratio and a percent for the shaded area. it is 3x3 and 5x5 grid there is 6 shaded out of a. 6 over 25 , 30% b. 3 over 50 , 6% c.6 over 25 , 24% d. 3 over 10 , 30%
Answers: 1
question
Mathematics, 22.06.2019 03:00
The seventh-grade students at charleston middle school are choosing one girl and one boy for student council. their choices for girls are michaela (m), candice (c), and raven (r), and for boys, neil (n), barney (b), and ted (t). the sample space for the combined selection is represented in the table. complete the table and the sentence beneath it.
Answers: 2
question
Mathematics, 22.06.2019 06:00
What is the simplified form of the square root of 72x^16/50x36? assume x ≠ 0.
Answers: 2
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
Computers and Technology, 31.07.2019 15:30
Questions on the website: 13722367