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

What three elements do all homeostatic control mechanisms have in common?
Which detail is an example of internal conflict in the monkeys paw
About how much of its property did Mexico lose during the mexican-American war
_________ , an enzyme, is produced in the stomach and breaks some of the peptide bonds in polypeptide chains. question 9 options: amylase denaturase dipeptidase
i need help with 9 and 11. im bein stupid today :/
13 is atleast the difference of a number v and 1
What is the domain of the function y = the square root of x + 4?
A bag contains 40 marbles there are 26 blue five Green five red to yellow and two black marbles without looking Layla reaches into the bag and draws one marble
What elements of Olmec culture were used by the maya and Incas?
When one thinks of scientific advancements, one may think of...???