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

PLEASE HELP! WRITE A SHORT PARAGRAPH, 5 SENTENCES. DESCRIBE HOW NONFICTION TEXTS COMPARE TO FICTION TEXTS. PLZ HELP
The gestation period of a donkey is about 365 days . About how many weeks is 365 days?
An organism's _______ describes its genetic composition. An organism's _______ describes its appearance or observable characteristics. A. species; heredity
To which sense do these images from “There Is No Word for Goodbye” mainly appeal? Looking through the net of wrinkles into wise black pools of her eyes A. tas
how do plot,characters and environment help develop a story ?
The Portuguese introduced guns to this Asian country in 1542 after a storm blew them off course. a. China c. Japan b. Indonesia d. Korea
PLEASE HELP DUE IN 5 MIN!!!!!!!!!!!!!!!!!!! A study was designed to determine the relationship between the weight of new cars and their gas mileage. What are
What is thought to have finally brought the United States out of the Great Depression? A. the New Deal B. the Dust Bowl C. the great demand for war materials
what where three restrictions placed on german jews
Which of these statements most accurately describes how carbon dioxide enters a leaf? a. CO2 is carried by water in leaf veins. b. CO2 is pulled in by leaf ve