Edited loops.md

Minor changes to some of the examples in loops.md