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

In ΔABC, a = 2, b = 3, and c = 4. Find the value of cosC. Is the triangle acute, right, or obtuse?
Please Help I Have a project due this week and I need help   !!!!!!!!!!!!!!!!!What was the Mayans surplus(large quantities)of food used for?
Briefly explain the key features of the North Atlantic Treaty Organisation (NATO).
Ammonia is released from dead plants by (A) denitrifying bacteria. (B) nitrogen-fixing bacteria. (C) bacteria of decay. (D) nitrifying bacteria. (E) none of the
which state was the first to abolish slavery
in the westing game, what conclusion did the judge reach concerning mr. and mrs. Theadorakis?
Why did the vinegar erupt when I put the baking soda ?
the energy is water but i wanf to know how does it affect the enviorment?
Why do people go on pilgremages?
Why did the vinegar erupt when I put the baking soda ?