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 guys please helpppp
where teenagers shooping the most?
1. Vinay applied the distributive property to the equation -5(m - 2) - 25. His equation then became --5m + 10 = -125. Did he apply the distributive property cor
Which of these situations can be handled by using the Management Information Systems? An organization needs different types of managements to achieve business g
Please solve the math problem... I will mark you brainliest
Divide: 83.5 ÷ 6.25 The first step in solving 83.5 ÷ 6.25 is to multiply the divisor and dividend by . The new division problem is
Read the passage about the life of Jackie Robinson. Jackie Robinson was born on January 31, 1919, in Cairo, Georgia. He was the youngest of five children and ra
8) Cashews cost $8.90 per pound. If Austin buys 2.45 pounds of cashews, what is the total cost? Round to the nearest.cent. $
Find the slope of the line passing through the points (-4.6) and (3.-8). DE underred 2​
What is the first step in solving 0.35 + 0.22x = 1.67?