so I have and for loop to find the highest number in and array how would i go about outputting the element number?
//compares the values in the yearAverage array to find the highest temperature
for(int i=0; i<lineCount; i++)
{
if(yearAverage[i]>=highTemp)
{
highTemp = yearAverage[i];
}
}