/* File: fig07_08.cpp */
#include <iostream>
#include <iomanip>

int main()
{
 const int nSize = 10;
 int n[nSize] = { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };
 int total = 0;

 // sum the contents of array n
 for(int i = 0; i < nSize; i++)
 {
  total += n[i];
 };

 std::cout << "Total of array elements: " << total << std::endl;

 return 0;
};

