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 are the main sacred text of judaism
the measure of distance from one point to another is?
Your oven has a power rating of 5000 watt... Your oven has a power rating of 5000 watts. a. How many kilowatts is this? b. If the oven is used for 2 hours to ba
What are some behavioral adaptations for a porcupines?
a map has a scale of 2 in : 25 mi. The map shows a highway is 31 inches long. how long is the actual highway?
Simplify (2x + 3)(x – 4) = ?
Estimate the value of 21*3.86/0.207 anyone knw the estimate for this?
what is the comparative and superlative of many, lazy, smooth, and rough
An atom of which element has the strongest attraction for electrons? A) Ba B) Cs C) O D) F
you are planting a rectangle garden. it is 5 feet longer than 3 times its width. the area of the garden is 250 feet. find the dimensions