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;
Answers: 2
Mathematics, 21.06.2019 16:30
Brainlest answer can you find the area and circumference of a circle given the radius or diameter? if its yes or no explain why
Answers: 1
Mathematics, 21.06.2019 19:40
Afactory makes propeller drive shafts for ships. a quality assurance engineer at the factory needs to estimate the true mean length of the shafts. she randomly selects four drive shafts made at the factory, measures their lengths, and finds their sample mean to be 1000 mm. the lengths are known to follow a normal distribution whose standard deviation is 2 mm. calculate a 95% confidence interval for the true mean length of the shafts. input your answers for the margin of error, lower bound, and upper bound.
Answers: 3
Mathematics, 21.06.2019 22:30
I’ve been trying all day to figure this puzzle out. i need the work for it aswell. it is a factoring polynomials tarsia. the image is below.
Answers: 3
Mathematics, 21.06.2019 23:00
What is the length of the midsegment of a trapezoid with bases of length 15 and 25 ?
Answers: 1
The following while loop prints multiples of 10 from 0 to 100 with a space in between.
int i = 0;...
Physics, 31.01.2021 07:50
History, 31.01.2021 07:50
Arts, 31.01.2021 07:50
Mathematics, 31.01.2021 07:50
Mathematics, 31.01.2021 07:50
World Languages, 31.01.2021 07:50
Mathematics, 31.01.2021 07:50
Mathematics, 31.01.2021 07:50
Business, 31.01.2021 07:50
Mathematics, 31.01.2021 08:00