Challenge for If Statement


You are working on the Collatz Conjecture, an unsolved problem in math.

You will be given one number a as input. If a is even, return half of a (a / 2). If a is odd, return 3 * a + 1.

For example, when given 5 return 16, and when given 16, return 8.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]