why does this loop work, but the other doesn't?

Printable View