Um... sorry, but we try not to give out answers to problems flat-out.
I can tell you how to compute a mean average, though. For some value X that changes each time you run a loop (say), simply add up all of your Xes, and then outside of the loop divide that number by the number of times you ran your loop.