Here's a for loop with a string that grows every time the loop, well, loops.
The control variable i gets added to sum every time the for loop is executed; the growing-string log keeps record.
i
sum
log