![Mathematics](/tpl/images/cats/mat.png)
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;
![answer](/tpl/images/cats/otvet.png)
Answers: 2
Other questions on the subject: Mathematics
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 16:10, cthompson1107
Which expression gives the area of the triangle shown below
Answers: 1
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 17:30, mduncan840
The marriott family bought a new apartment three years ago for $65,000. the apartment is now worth $86,515. assuming a steady rate of growth, what was the yearly rate of appreciation? what is the percent of the yearly rate of appreciation?
Answers: 1
![image](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 18:30, anishivaturi123
Select the lengths in centimeters that would form a right triangle
Answers: 1
![image](/tpl/images/cats/mat.png)
Do you know the correct answer?
The following while loop prints multiples of 10 from 0 to 100 with a space in between.
int i = 0;...
Questions in other subjects:
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/biologiya.png)
Biology, 25.11.2021 15:00
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 25.11.2021 15:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.11.2021 15:00
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 25.11.2021 15:00
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.11.2021 15:00