+ 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.
3rd Apr 2017, 2:24 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar