#include <iostream.h>
int main()
{
int n, count; //declaration
double sum=0, average;
int x[10]; //declare array’s elements as type int
cout << "How many numbers do you want to enter not exceeding 10?";
cin >> n; //accept integer
while(n > 10){
cout << "How many numbers do you want to enter not exceeding 10?";
cin >> n;
}
for (count=0; count<=n-1; count++)
{
cout << "Enter number: " ; //print out enter number
cin >> x[count]; //accept integer
sum += x[count]; //assign integer to sum
}
cout << "\n\nYou entered " << n << " " <<"numbers\n\n";
cout << "These are the numbers that you entered: " << endl;
for(int counts=0; counts<=n-1; counts++)
{
cout << x[counts] << " "; //displays integers that were entered
}
cout << endl;
cout << "\nThe sum is " << sum << endl; //displays the sum of integers
average = sum / n; //calculates average of integers
cout << "\nThe average is " << average << endl << endl; //displays average
return 0;
}//end main
That should do it for ya. I compiled in VC++, and it seemed to work well. Have fun

.
-CDudd