#A simple collatz function checker

9 messages · Page 1 of 1 (latest)

hardy root
#

Just a simple 15min code i wrote in the morning to not forget c++

cursive tartan
#

@hardy root what his code doing

hardy root
#

So like

#

3n+1 if the number is odd

#

Or n/2 if its even

cursive tartan
#

so if its odd we do 3 x the number + 1 if even nunber / 2

#

nvm