Hay im trying to find the average of the columns. but i can onli get the average of the rows.
my code is like so . .
for (int l = 0; l < list1.Count; l++)
{
float sum = 0.0F;
float average = 0.0F;
string[] list1Values = list1[l].Split(',');
for (int k = 1; k < 6; k++)
{
sum += float.Parse(list1Values[k]);
average = sum / k;
}
Console.Write("{0}", average);
}
Any ideas????