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

National heritage reflect our identity and glory justify​
Give four effects of broken marriage.
The insects, birds, snakes, and plants that live in a local wetland make up a A. molecule B. organism C. population D. community
If it is Tuesday in the Cook Islands, what day is it in New Zealand?
what type of number is 4 plus 5 StartRoot 2 EndRoot?
solve for variable. 3p/5 + 8/5 =1
Algunos granos de maíz al ser calentados revientan y pierden agua de manera explosiva. En promedio se puede considerar que tienen una masa de 125 mg y cuando ex
At the laundromat, Carol used to pay $1.50 per load, but the company has increased the price per load by 20%. Estimate the amount Carol will pay to was 6 loads
What is the Leading Coefficient of 3x^6-2x^9+5x-12 when written in Standard Form? ASAP!!!!
When writing a summary, what does it mean to be objective? to include only the most important details to leave out personal opinions to keep statements brief t