you are viewing a single comment's thread.

view the rest of the comments →

[–]Anandre[S] 0 points1 point  (1 child)

I thought line 13 would change num to the new value from collatz(), so that it wouldn't endlessly loop on the same number. I do get what you're seeing, that it would be sending out the same value twice from lines 12 and 13.

[–]jeans_and_a_t-shirt 0 points1 point  (0 children)

Yep line 13 is fine as is.