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

Many Americans define ethical behavior according to the situation in which they find themselves. This suggests that there may be situations where ________ to ch
What is referred to as climate study. 1=microbiology 2=cloudology 3=climatology
The Hundred Years' War was fought by _____. England and Spain England and France France and Spain Poland and Lithuania
A scientist wants to predict the weather which sphere should he study?
Which of newtons laws is illustrated by a squid moving forward by shooting water out behind it? Why?
The trachea connects to the pharynx. True or False (SCIENCE)
The respiratory system of the body can be injured by volcanic _____ that comes from a volcanic eruption. boulders ash rock
Newton believed he knew the physical cause of gravity. True or False?
what are a firms four major financial needs?
which is larger 10cm:1mm