//this program demonstrates that an array element is passed
//to a function like any other variable.
#include <iostream>
using namespace std;

void showValue(int);	//function prototye

int main()
{
	const int SIZE = 8;
	int numbers[SIZE] = {5, 10, 15, 20, 25, 30, 35, 40};
	
	for (int index = 0; index < SIZE; index++)
		showValue(numbers[index]);
	return 0;
}

//***********************************************
// definition of function showValue.			*
// this function accepts an integer argument.	*
// the value of the argument is displayed.		*
//***********************************************

void showValue(int num)
{
	cout << num << " ";
}
