Comment Re:The mass still has to come from somewhere (Score 1) 384
actually, in C/C++ (x--) would return x and the loop would execute exactly 100 times. After that x==0, hence false, hence the loop ends.
So the code is actually correct, it's the (x>0) as post-loop-body action that's superfluous...