In C++, write a method that follows the Collatz conjecture. If n is even set n=n/2 and if n is odd set n=3n+1.

2 years ago
Anonymous $dy9SWuvIkX