Update loops.tex

Fixed incorrect variable name.