python_while 循环_珠穆朗玛峰

num1 = 88440000
count = 0
num = int(input("请输入一个数值:"))
while num < num1:
    num *= 2
    num >= num1
    count += 1
print(num / 2,count - 1)

你可能感兴趣的:(python_while,python)