9 messages · Page 1 of 1 (latest)
Just a simple 15min code i wrote in the morning to not forget c++
@hardy root what his code doing
Basically, the collatz functio
So like
3n+1 if the number is odd
Or n/2 if its even
so if its odd we do 3 x the number + 1 if even nunber / 2
nvm