Hi my name is Javier Taylor and I am working on a program that will take 1 mod 3 and 2 mod 3 mumbers backward in the Collatz conjecture. The problem is that I can't figure how to do two different operation under a while loop. So while the input is not 0 mod 3 I want the program to check th eremajndef mod3. If it is 1 then multiply by 4, subtract 1 and divide the difference by 3. If number is 2 mod 3 the multiply by 2, subtract 1 and divide by 3. When the sequence reaches a 0 mod 3 then end program and display list of odd numbers in sequence.

Can anyone help?