Jump to content

Averages/Arithmetic mean: Difference between revisions

(Undo revision 29033 by 99.136.216.62 (Talk) (Vandalism.))
Line 154:
static double avg(ICollection<int> i)
{
if (i.Count == 0null || i.Count == null0) return 0;
return i.Sum() / (double)i.Count;
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.