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

what is the coefficient of O2 when the equation is balanced?C4H8O2+O2
How do you say I am a doctor in French?
Cell membranes are primarily made of a component that contains fatty acids. This component is most likely a... carbohydrate. protein. nucleic acid. lipid.
i am from detriot in spanish
(v)What is meant by public finance?​
Fill in the blank. -6 + ____ = -6
Sako makes 11 cakes to share equally among 5 people. How many cakes does each person get?
ENGLISH ASSIGNMENT NO PLAGIARISM Answer the questions below according to the instructions given. Please note that response to BOTH questions must be included
Three bowling balls have finger holes with diameters 13/32 inch, 19/32 inch, and 25/32 inch. A finger hole with diameter of 3/4 inch is slightly too large for y
how to find the length if the width is x