in reply to Re^2: Noob's question
in thread Noob's question

Sorry I saw the output wrong. Actually It seems to work fine.

I find it highly unlikely that your code works, considering it's very likely to go into an infinite loop...