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

Which of the following is a true statement about the call option? It allows investors to purchase stocks at a going rate for a group of companies. It is helpful
The scale on map 1inch:3miles The movies is 5 inches on the map from the house. How far is the movies actually from the house?
what is 0.0000000405 in standard notation
How many grams of magnesium metal will react completely with 5.2 liters of 4.0 M HCl? Show all of the work needed to solve this problem. Mg (s) + 2HCl (aq) y
Lilly has a bag of 140 colored marbles. The bag has an equal number of green and blue marbles and an equal number of red and yellow marbles. If Lilly arranged
Write the standard form of the equation of the circle with the given characteristics. center: (0, 0); radius: 4
Select the best answer for the question. 1. 2.1 + 3.32 – 1.4 = ? A. 4.2 B. 4.02 C. 6.82 D. 5.42
What is the area of triangle ABC? A. 112 cm2 B. 48 cm2 C. 56 cm2 D. 64 cm2
there are 41 students in group 2 twice as many students play the trumpet as play the trombone but 8 students play the sax how man students in group 2 play e
Please Help Thank You