Calculates an average using iteration