#include<iostream>
using namespace std;

void getList(int numArray[], int sizeArray);


int main()
{
 int numList[5];

 // Get numbers for list
 getList(numList,5);

 // Output numbers in list
 for(int i=0; i<5; i++)
   cout << numList[i] << " ";

 cout << endl;

 return 0;
}


// Preconditions: input integer array and the size of the array
// Postconditions: input array is filled with numbers specified
//                 by user
void getList(int numArray[], int sizeArray)
{
 cout << "Enter numbers in list: ";
 int i=0;
 while(i<sizeArray)
 {
   cin >> numArray[i];
   i++;
 }
}