You are correct. One of the magnets needs to be used twice in order to produce the correct results. This is not reflected in the solution shown on page 25. (Entering the code on pg 20 does result in incorrewct ouput). The "problem" then becomes by reusing that one magnet, the while loop beomces unneccessary since you only "loop" through it one time.
posted 13 years ago
You have no idea how good that makes me feel :-)
It's weird that we cook bacon and bake cookies. Eat this tiny ad: