SNHU-IT-140/4/4.2/4.2.3/main.py

6 lines
146 B
Python

user_num = int(input())
while user_num >= 1:
user_num = user_num / 2 # We operate on the value first, before printing it
print(user_num)