Anonymous user
Averages/Arithmetic mean: Difference between revisions
→{{header|C sharp|C#}}
(Undo revision 29033 by 99.136.216.62 (Talk) (Vandalism.)) |
|||
Line 154:
static double avg(ICollection<int> i)
{
if (i
return i.Sum() / (double)i.Count;
}
|