Edited loops.md

Changed summation variable to sum and edited table of iterations