My Collatz conjecture code is in an infinite loop. Any number I enter never changes when the program executes. Thoughts?

后端 未结 0 1627
醉酒成梦
醉酒成梦 2021-01-18 03:50
def is_even(number):
    return number % 2 == 0


def check_number(number):
    if is_even(number):
        number = number //         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题