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 65% of 97?do NOT round your answer
What two migration patterns have changed Mexico's population
A ______ is a statement of what will happen in a given set of circumstances
Which statement best describes a graph of paired points that form a proportional relationship? A) A straight line can be drawn through all the points, and the l
Fill in the blanks. Information 1:______________ Sentence:______________ Information2:_____________ Sentence:______________ Information3:______________ Sente
need help! Divide 4 over 5 ÷ 1 over 10
HELP ME OUT PLEASE! What was the original purpose of the Constitutional Convention? To fix the Articles of Confederation To write a Bill of Rights To discuss hi
___ son de Argentina Ustedes Tu yo Ella Nosotros
9x + Зу = -3 2х - у = -4
URGENT HELP PLEASE 10 + 5x -4(x - 2) = 31