Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, at the end of each 10, save a copy of avgImg to whatever data structure is holding your averages, then set avgImg to zero.

No need for anything special.