buddha00441166 buddha00441166
  • 18-11-2020
  • Computers and Technology
contestada

Demonstrate the condition of a while loop that runs no more than five times using the variable x, which is initialized at x = 1.

Respuesta :

drasenick
drasenick drasenick
  • 18-11-2020

Answer:

Python Code:

x = 1

while x <= 5:

# do something

x += 1 # then incriment

Java Code:

int x = 1;

do {

System.out.println(i);

x++;

}

while (x <= 5);

Answer Link

Otras preguntas

Anions are formed by what
In which kingdoms are all organisms multicellular? A. Animalia and Fungi B. Animalia and Plantae C. Protista and Fungi D. Protista and Plantae
please help me with all these questions
This is a really important question :// just making sure I'm correct? if I'm not, any chance you can explain the correct answer?
Figure ABCDE is the result of a 180 °rotation of figure LMNOP about the point. Which angle in the pre-image corresponds to ∠A in the image? Enter your answer
I need help how do you do this ?
How many different ways can you choose 2 vowels out of the box, if there are 5 vowels in the box and order matters.
which of the following is an example of competition that could be found int the ocean
How did fashion change in the 20's?
Please help!! This is due by midnight :( Identify and briefly describe the accomplishments of James Cook (1729-1779) during the era of exploration of the 1700s.