When posting code, please use the highlight tags to preserve formatting.

What exactly is the problem with this code? What does it do? What do you expect it to do? How do they differ?