Talk:Hailstone sequence: Difference between revisions

no edit summary
(→‎Fortran: Add prints. Repeat!)
No edit summary
Line 35:
: It seems to have something to do with the DO-loop since if i remove the loop (essentially making a program that does only one iteration of the hailstone sequence) the arithmetic works fine.
:: I meant maybe the sequence starting from that number overflowed. Try printing all the variables each time through the loop, or changing the exit condition to less than or equal to 1? --[[User:Paddy3118|Paddy3118]] 04:52, 14 July 2010 (UTC)
::: I'm not sure what you mean but the exit condition isn't working anyway, I've actually seen numbers result a 1,2,1,2,1,2 oscillation, ignoring the fact that 1 was reached already.
Anonymous user