// Initialize array s to the even integers from 2 to 100.
#include <iostream.h>
#include <iomanip.h>

main()
{
   const int arraySize = 50;
   int s[arraySize];

   for (int j = 0; j < arraySize; j++)   // set the values
      s[j] = 2 + 2 * j;

   cout << "Element" << setw(13) << "Value" << endl;

   for (j = 0; j < arraySize; j++)   // print the values
      cout << setw(7) << j << setw(13) << s[j] << endl;

   return 0;
}


