crocodilulcroco5500 crocodilulcroco5500
  • 20-07-2022
  • Computers and Technology
contestada

Write a while loop that prints user_num divided by 2 until user_num is less than 1. The value of user_num changes inside of the loop.

Respuesta :

faarizyt
faarizyt faarizyt
  • 21-07-2022

Answer:

user_num >= 1

while true do

print "user_num/2"

Explanation:

First, you write that the user_num is equal to or is greater than 1. Then you write in the while loop that while that's true, print user_num divided by two.

Answer Link

Otras preguntas

Facts about the Italian renaissance?
Which formula can be used to find the nth term in a geometric sequence where a1=3 and r=2? a) an=3+2(n-1) b) an=3(n-1)+2 c) an=3^n-1•2 d) an=3•2^n-1 A sequence
What is the primary theme of Ha Jin’s “A Decade”?
in which layer do light gases escape Earth's gravity?
One possible cause of extinction is
Thank you for the help please answer the questions in the picture below
Mrs. Gerhard wants to plant grass in her backyard. She wants the grass to cover all of her backyard except the play area. How many square feet of grass will
Please answer as quickly as you can, thanks!!! :D
$28 dollars per share and sells them at $24.50 what is the percent increased
The outer planets make up about ____ percent of the mass known to orbit the Sun a. 15 b. 55 c. 99