- If n is odd, multiply it by 3 and add 1 - Repeat the process until you reach 1 Print the Collatz sequence for each number from 1 to 100.
- If n is odd, multiply it by 3 and add 1 - Repeat the process until you reach 1 Print the Collatz sequence for each number from 1 to 100.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果