whyyoubullyme81
whyyoubullyme81 whyyoubullyme81
  • 16-12-2020
  • Computers and Technology
contestada

What will happen when you run this program?

num = 10
while num > 0:
print (num)

a Syntax Error
b Logical fallicy
c Infinite loop
d Definite loop

Respuesta :

goodLizard
goodLizard goodLizard
  • 16-12-2020

Answer:

C. Infinite loop

Explanation:

num will be printed continuously since it will always be bigger than [tex]0[/tex] ([tex]10[/tex] is greater than [tex]0[/tex], satisfying the condition num > 0) making it an infinite loop since it will go on forever.

Hope this helps :)

Answer Link

Otras preguntas

Hello everyone, need some help with this question? What is Flash Fiction?
what are age demographics?
What are the uses of chlorine??
Find an equation of a line that comes close to the points listed in the table. X|y 6|8 10|13 12|15 16|18 18|21
why do people get asma
2. Edna paid at least php. 1,200 for a pair of pants and a blouse. the cost of the pair of pants is php. 600 more than the cost of the blouse.
Better view of 4 HELP PLEASE
what does it mean to 'get it in the neck'?
what are some commonly misused words?
The direction of swing of a Foucault pendulum appears to change due to Earth’s