+ 3

int sum = 0, avg;
for (int i = 0; i < 10; i++) {
sum += a[i];
}
avg = sum / 10;
where 'a' is the array containing 10 numbers.

+ 3

int sum = 0, avg;
for (int i = 0; i < 10; i++) {
sum += a[i];
}
avg = sum / 10;
where 'a' is the array containing 10 numbers.