#include <iostream>
using namespace std;
//Write your function prototype here
void avgArray(int [], int);


int main()
{
	const int SIZE = 10;
	int userNums[SIZE];
	int sum=0;
	cout << "Enter 10 numbers: ";
	for (int count = 0; count < SIZE; count++)
	{
		cout << "#" << (count + 1) << " ";
		cin >> userNums[count];
	
	}
	
	cout << "The average of those numbers is ";
    avgArray(userNums, SIZE);
    
	return 0;
}
//Write the function avgArray here.    
void avgArray(int userNums[], int SIZE)
{
	double sum;
	double average;
	for(int count = 0; count<10; count++)
	{
	sum+=userNums[count];
    }
    average=sum/10;
    cout<<average;
}                              

