subject

4.2.3: basic while loop expression. write a while loop that prints usernum divided by 2 (integer division) until reaching 1. follow each number by a space. example output for usernum = 40: 20 10 5 2 1 note: these activities may test code with different test values. this activity will perform four tests, with usernum = 40, then with usernum = 2, then with usernum = 0, then with usernum = -1. see "how to use zybooks". also note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
question
Computers and Technology, 25.06.2019 05:10
What is the disadvantage of a mesh topology?
Answers: 1
question
Computers and Technology, 25.06.2019 06:30
During which stage do you think is the best time for a company to purchase an emerging technology
Answers: 1
You know the right answer?
4.2.3: basic while loop expression. write a while loop that prints usernum divided by 2 (integer di...
Questions
question
Physics, 16.06.2020 22:57
question
Mathematics, 16.06.2020 22:57
question
Mathematics, 16.06.2020 22:57
question
Mathematics, 16.06.2020 22:57
question
English, 16.06.2020 22:57
Questions on the website: 13722367