#include <iostream>
usingnamespace std;
void description(void);
int arrayEntry();
int nArray[10];
int colArray = 0;
int main()
{
description();
arrayEntry();
int aNumber;
cout << "Now enter an array value to view" << endl;
cin >> aNumber;
cout << "Vaule is " << nArray[aNumber];
return 0;
}
void description(void)
{
cout << "This program allows the user to enter \n"
<< "numbers into an array" << endl;
}
int arrayEntry()
{
for(int nVal; nVal >= 0; colArray++)
{
cout << "Enter number to go into col "
<< colArray << ": ";
cin >> nVal;
nArray[colArray] = nVal;
}
return
}