Printing sum in loop

MorganS:
but that assignment is only done once, before the program starts.

*on first use, not before the program starts.