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

Can someone sumarize this artcle for me please https://www.cnn.com/2016/08/23/us/transgender-bathroom-policies/index.html and aswers this question who is the ta
When I go camping with my Dad, we always take supplies. What is the best revision? A. When I go camping with my Dad, we take a tent, sleeping bags, food, and a
Can someone help me thank you
A rectangle is 29 feet long and 7 feet long. What is the area of this rectangle? 203 ft² 143 ft² 107 ft² 72 ft²
hi please help i’ll give brainliest
Find the area of the figure. Round to the nearest tenth. 6.5 3 O 14.6 units2 O 22.4 units2 15.0 units2 O 18.2 units2
Could I have help with this? Please? 15 points!
If we look up in to the night sky and observe which stars appear to be the brightest. What are we actually observing? A-distance from the Earth B-luminosity C-a
Please help and write a proper answer I really need it. Thanks.
Completa las oraciones con el opuesto. MODELO: Esteban es alto, no es bajo. 1. El carro de mi papá es rápido, no es 2. La clase de matemáticas es difícil, no es