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

what position did Roosevelt resign when he took on the role as a Rough Rider
what did he warn icarus not to do
Write an inequality that represents the statement \"x is greater than –3 and less than or equal to 4.\" .
What words serve as clues for readers of comparison/contrast writing? a. Signal words b. Research words c. Boldface words d. Multisyllabic words
which section of a research paper should contain the main idea?
If the radius of the Earth is roughly 3,960 miles, how many times larger is the volume of the Earth than the volume of a ping-pong ball? A ping-pong ball has a
Find the volume of a cylinder with a diameter of 8 inches and a height that is three times the radius. Use 3.14 for pi and round your answer to the nearest hund
what powers are given to the president through the checks and balances system?
assets that arent expected to provide benefits for a number of accounting periods are called what?
A graphic representation (that cannot be touched or felt) of an object is a __________ model. a. physical b. computer c. idea d. virtual