Edited loops.md

Revised while-loop example.