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 is a lobbyist (gov)
PLEASE HELP!!!! ERGF is inscribed in a circle. Find the measure of angle E.
Solve this: 2x+y=-7y Y=x+10
You have a web application hosted in AWS cloud where the application logs are sent to Amazon CloudWatch. Lately, the web application has recently been encounter
I need to know the answers
The __________ process of nlp normalizes words into base or root form.
what forms as part of mitosis
Consider a Cournot game between two firms. The firms face an inverse demand function described by the equation P(Q) = α − Q if Q ≤ α, P(Q) = 0 if Q > α, wher
Which form of the verb tener correctly completes this sentence? Nosotros diez libros.
The Patriot Act requires that telecommunications carriers and manufacturers of telecommunications equipment modify and design their equipment, facilities, and s