Hey guys, for some reason I can't figure out how to calculate the average from a number of scores in an array.
I've tried although I get weird numbers e.g 1003434343.43 or inf. Here's my attempt:
for (index = 0 ; index < score[index] ; index++)
avgScore = (avgScore + score[index] / index);