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

which drug is the deadliest?
Based on the origin of the robin which statement best illustrates the ojibwa view on an individuals growth and change? A) Growth and change occur as a result o
divide and round to the nearest hundreth 31divided by 453
Is it healthy for a minor who weighs 143 pounds and is 5'5 to lose 25 pounds ?
who won the election of 1832
How are pressure and temperature related to each other?
What is one way that a culture becomes established as a recognized entity? A) by occupying the same region and keeping others out B) by recruiting people unt
how can Augustus Caesar's rule be distinguished from Julius Caesar's
what is sum of numbers 1 2 3 4 5 6 ... 99 100=
How many restaurants in your area serve international cuisines?