// This program asks for the number of hours worked
// by six employees. It stores the values in an array.
#include <iostream>
using namespace std;

int main()
{
	const int NUM_EMPLOYEES = 6;	//number of employees
	int hours[NUM_EMPLOYEES];		//each employee's hours
	int count;						//loop counter
	
	//input the hours worked.
	for (count = 0; count < NUM_EMPLOYEES; count++)
	{
		cout << "Enter the hours worked by employee "
			 << (count + 1) << ": ";
		cin >> hours[count];
	}
	
	//display the contents of the array.
	cout << "The hours you entered are:";
	for (count = 0; count < NUM_EMPLOYEES; count++)
	{
		cout << " " << hours[count];
	cout << endl;
	return 0;
	}
}
