so here is something simple I can not get to work. What going on?
basically I am given an array temps
double temps
n = the number of elements in the array
i want to write a loop to create the average of the figures in the array temps.
I declared two more variables k and temp
here is what I have so far
Code:for( k=0;k<=n; k++) { total++; aveTemp = temps[total] / n; }