akatamashhii akatamashhii
  • 11-01-2022
  • Computers and Technology
contestada

7. Rewrite this "for" loop into a while loop:
for (int i = 0; i < 6; i = (i + 2)/2) {
System.out.print(i + " ");
}
+

Respuesta :

s1780432 s1780432
  • 20-01-2022

Answer:

int i = 0;

while (i<6) {

   System.out.print(i + " ");

   i = (i+2)/2;

}

Explanation:

Answer Link

Otras preguntas

for editing youtube videos, what is the best software to use?
What kind of clause is the clause in dark type? the shelves were empty, >but the lights were still on?< A) Adjective clause B) Adverb Clause C) Noun Cl
Why did the crusades go to the northern part of Jerusalem to attack the city
Analogías incompletas figurativas
1. write an equation in point slope form that passes through the point (2,3) and slope of -4 y-y1=m(x-x1)2. write the equation in slope intercept form. will gi
Why do the townspeople line up to fight Odysseus?
will someone help me?
ATP is involved. Select one: a. Both Photosynthesis and Cellular Respiration b. Neither Photosynthesis nor Cellular Respiration c. Photosynthesis d. Cellular Re
drag the tiles to the correct boxes to complete the pairs. Not all tiles will be used. determine the relationship described in each table. x/y x/y
Trade arises as a result of the uneven distribution of resources and _____. A. high-speed communication B. increased education opportunities C. rapid transporta