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

LAST STRIKE!!!! This is a method of examining similarities and differences between two or more objects in a piece of work.
4.5 = 1.5x4.5 ÷ ___ = 1.5x ÷ ______ = x​
Every few years, some of the trade winds that blow directly over the ocean weaken. What changes would be most likely to occur next Increasing ocean temperatures
8x - 5x - 1 = 11 - 2x
is the answer a, b, c, or d?
about village in 50 words in hindi​
2x2x2x2/14 P.S this Q is for supbro
a science class has two times as many girls as it has boys. a. Describe possible numbers of boys and girls in the science class.
The sum of two numbers is 39. The smaller number is 7 less than the larger number. What are the numbers?
6th grade math help me pleasee:(