Update README.md

added while and for loops