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

How do you find the density of an object?
The mormon murders: a true story of greed, forgery, deceit, and death
What do all the ecosystems in a biome have in common?
find the circumference of the circle whose diameter is 63cm
Find all solutions to the followin ginterval 2cos^2+3cos+1=0
Ivan can paint 25 square feet every half hour how many square feet can he paint and in 3 hours A. 225 B. 150C. 75 D. 50
How many gallons of water does it take to make a hamburger?
Doesn't anyone know the answer
What does it mean when the sine has the same value as the cosine?
Which of the following best describes the Federalists' view on ratification of the Constitution? (3 points) Select one: a. The ratification process should begin