declaring a variable before a loop would help on cumulative algorithms. if the variable is an integer Maybe for adding or even multiplying the integer in the for loop.