kittypower822
kittypower822 kittypower822
  • 20-11-2020
  • Computers and Technology
contestada

What is the output of the following program?
numA = 2
while numA < 30:
numA = numA * 5
print(numA)

Respuesta :

vfxdead
vfxdead vfxdead
  • 20-11-2020

Answer:

the output of that code would be invalid syntax since the line,

>>> numA = numA * 5

is not indented.

The output of

>>> numA = 2

>>> while numA < 30:

>>> numA = numA * 5

>>> print(numA)

would be 50.

Answer Link
potatoehead1234 potatoehead1234
  • 30-12-2020

Answer:

Your answer would be 50

Explanation:

Edge 2020

Answer Link

Otras preguntas

How do air sacs of birds help make body lighter
what is the study of mathematical probabilities, distributions and deviations?
Romeo and Juliet - Act V Scene iiiJudging from his words in the tomb, how do you think Paris feels about Juliet?
How did cities influence colonial life?
How do air sacs of birds help make body lighter
What is a radius of a circle
Can the sum of two mixed numbers be equal to 2?Explain why or why not.
Simplify the radical x^13
Simplify the radical 72
What 2 numbers add up to get 17 and multiply to get 42??