- 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.