Oh I see what you are saying. Every time the loop iterates, the average calculation will also calculate since it is a part of a loop. Instead having it outside the loop makes it look better and would be a good programming practice:)
Ancient Dragon commented: Exactly! Now you have the right idea. +20