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

The solution to -6+1/4w=-4
American rock band which eddie vedder once jokingly claimed was named after his great-grandmother
A power supply unit for a computer converts:
In “The Seafarer” the phrase “summer’s sentinel,” meaning a cuckoo, is an example of a. a kenning. c. a scop. b. a predicate. d. an exile. Please select the bes
What is 5.63 x 10^-6 in decimal form
write the opposite of each number -7.8
Critical Reading The questions below refer to the selection “The Negro Speaks of Rivers”. The theme of the “The Negro Speaks of Rivers” concerns the a. long h
I need help please ASAP
Mike is 4 years older than ron. in two years, the sum of their ages will be 84. how old are they now?
The distance from first base to third base on a baseball diamond is 1.4 times the distance from home plate to third base, which is k feet. Represent the distan