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

How is it possible for Mercury to have frozen ice ?
Prove that (x^5)-(x^2)+2x +3=0 has at least one real root. Prove that x=cosx has at least one solution.
Scarcity is the condition of not having enough goods and services to satisfy everyone's?
Find Domain of the functionsquare root of (x-8)/x(x-9)
How is it possible for Mercury to have frozen ice ?
Scarcity is the condition of not having enough goods and services to satisfy everyone's?
Scarcity is the condition of not having enough goods and services to satisfy everyone's?
Find Domain of the functionsquare root of (x-8)/x(x-9)
How were life forms affected by the rise in atmospheric oxygen levels that began 2.2 billion years ago?
Scarcity is the condition of not having enough goods and services to satisfy everyone's?