esquiveljadyn7939 esquiveljadyn7939
  • 30-09-2021
  • Computers and Technology
contestada

write a while loop that prints from 1 to user_num, increasing by 1 each time.

Respuesta :

holmtheditto
holmtheditto holmtheditto
  • 30-09-2021

Answer:

Python:

count = 0

while count <= user_num:

print(count)

count += 1

JavaScript:

let count = 0

while (count <= user_num) {

print(count)

count++

}

Explanation:

Not sure what language you asked for, but I wrote it in Python and JavaScript. Make sure to indent for the python one.

Answer Link

Otras preguntas

I said to him what do you do into indirect speech​
A disadvantage of sexual reproduction in plants is A) the two-generation system. B) genetic variation. C) additional energy needs to complete a life cycle. D)
Please help explanation if possible
a car is traveling east at 200 km/hr. how many hours will it take to cover a distance of 730 km?​
Exploring Mood and Tone Quest #1 in your own words What is the mood of the image? Explain
please help me please it's urgent​
What are the next three terms of each sequence?5,7.5
I WILL MARK BRAINLY PLZ HELP + 50 PTS!!!!! Which of the following is another way to express -13 - 7? -13 + 7 -13 + (-7) 13 + (-7)
Asp helpppppppp will give brainliesttttttttttt
How is lozen able to hear the predator hunting her inside her head