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

A biologist discovered a new organism and classified it as a mollusk after studying its characteristics. As a mollusk, the animal probably has (a radula, pores,
which of the following best describes the purpose of skimming when reading text
In the land of the Lotus-Eaters, Oydsseus' scouts are A. killed with bronze-tipped spears. B. eaten by people who carry the Lotus flower. C. charmed by singi
The total number of people who registered for the conference was 350. how many participated in the conference on both days?
5000 is invested at 3 percent interest. how much money must be invested at 5 percent interest so that the total interest from the two investments is 275 after o
Which group settled in America to escape religious persecution
Simplify the rational expression. State any excluded values. 7x-14/x-2
A sequence of numbers in which the ratio between any two consecutive numbers is a constant is called a(n):
As a narrator, montresor can best be described as
Spanish help please