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

int main()
{
 int n[10];	// n is an array of 10 integers
 
 // initialize elements of array n to 0
 for(int i = 0; i < 10; i++)
 {
  n[i] = 0;	// set element at location i to 0
 };

 // output each array element's value
 std::cout << "Element" << std::setw(13) << "Value" << std::endl;
 for(int j = 0; j < 10; j++)
 {
  std::cout << std::setw(7)  << j
            << std::setw(13) << n[j]
            << std::endl;
 };

 return 0;
};

