Perl Monk, Perl Meditation | |
PerlMonks |
Re: Average/mean calculatorby Laurent_R (Canon) |
on Jun 04, 2014 at 18:03 UTC ( [id://1088707]=note: print w/replies, xml ) | Need Help?? |
Hi, store your numbers in an array or update the sum and count as you go, then you only need to divide by the count. Something like this:
In Section
Seekers of Perl Wisdom
|
|