Open a new Arduino sketch and copy the following lines to the top (creating 2 global variables):

const int len = 10;
int a[len] = {0, 2, -4, 12, -52, 42, -96, 7, -23, 99};

In setup(), compute the average of the a[] array and print it to the Serial Monitor.

In this case, the average of a[] is -1.3. Without modifying your code, you should be able to change the global variables to

const int len = 8;
int a[len] = {125, 1920, 503, 299, 67, 13578, 7632, 22043};

and get an average of 5770.8750.

Hint: You can use Serial.println(float_variable, 4); to print 4 decimal places.