CHALLENGE ACTIVITY 5.2.3: Basic while loop expression. Write a while loop that repeats while user_num ≥ 1. In each loop iteration, divide user_num by 2, then print user_num.Sample output with input:...



CHALLENGE ACTIVITY


5.2.3: Basic while loop expression.







Write a while loop that repeats while user_num ≥ 1. In each loop iteration, divide user_num by 2, then print user_num.


Sample output with input: 2010.0 5.0 2.5 1.25 0.625



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.




344614.2153518.qx3zgy7<br>1 user_num = int(input())<br>2<br>1 test<br>passed<br>3' Your solution goes here<br>4<br>All tests<br>passed<br>Run<br>DD!I<br>

Extracted text: 344614.2153518.qx3zgy7 1 user_num = int(input()) 2 1 test passed 3' Your solution goes here 4 All tests passed Run DD!I

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here