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

Many correlation studies show a relationship between violent television viewing and aggressive behavior in the United States. Does decreasing violent television
Which statement best explains why meiosis produces haploid cells rather than diploid cells?
Read the sentence. Dad made these pickle and peanut butter sandwiches for Mom and __. A. we; object of a preposition B. we; indirect object C. us; object of a
The process that breaks down rocks and other substance on the earth's surface is called?
Elsie bought a video game for $85.00. If the store charges 170% of its cost for the game, how much is the store’s profit?
Multiply x to the 1 third power times x to the 3 sevenths power
Americans were ready to concentrate power in the hands of a single ruler, true or false?
Why did Tybalt challenge Romeo to a duel? A. Romeo insulted him. B. Tybalt found about Juliet. C. Romeo showed up at the party. D. We can't be sure
The table represents the interest rates, r, at various years and the corresponding median house value, v. What does the slope of the trend line equation v = 2.4
how do I figure out the volume of this image