lowrez42
lowrez42 lowrez42
  • 02-11-2020
  • Computers and Technology
contestada

When does the following while-loop stop running?

var = 1
while var == 1 :
num = num+1
print (num)

A. As soon as num reaches the value of 10
B. After the first time through the loop it stops
C. It never stops running
D. None of the above

Respuesta :

Cytokine
Cytokine Cytokine
  • 02-11-2020

The loop never stops running because the value of var is always 1.

Answer Link

Otras preguntas

You can count, use blank or multiply to find the area of a rectangle
12(Bert has 3 dollars more than Erin. Together they have 22 dollars. How may dollars does Erin have
The Homestead Act of 1862 gave free what to settlers?
a ladder leans agaisnt a building that is perpendicular to the ground such that it makes a 74 degree angle with the ground and its bottom lies 2.75 feet from th
What is a mechanical wave?
which linear equation BEST represents the line of the best fit for the scatterplot?A)y-1/3x-1B)y- -1/3x+1C)y-3x+1D)y-3x-1
what is money earned on a regular basis for work through investments
How did cotton affect the social life of the south?
What equation does the model represent?
For the equation, y = -4X - 5, tell whether it's graph passes through the first quadrant. Explain how you know