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

The angular difference between true north and magnetic north is called .
What is currently happening to global sea level
I need help please.
What is so unique about embryonic stem cells? Culture of Life: Select the best answer from the choices provided. A. They could develop into 130 different human
Why do the gas giants have many moons? A. They are large and so they have a lot of gravity, B. Violent surface conditions emit rocks that form moons. C. They ar
Which of the following is an endothermic process? A. rusting a nail in water B. mixing strong hydrochloric acid and strong ammonium hydroxide C. a heat pack
Evaluate the expression.
Abdid is an astronomer who has been observing objects that orbit the Sun in the asteroid belt. He finds a previously undiscovered round, rocky object that is no
Find all solutions of the equation. leave answers in trigonometric form x^3-8=0 2cis
PLEASE HELP!!!!!!!!! DUE TOMORROW!!!!!! WILL GIVE BRAINLIEST!!!!!!!!!!!!! EASY MATH!!!!!!!!!!!!!!