// This program creates an array of the first 10 integer // squares and then displays them. #include #include void display_array (int a[], int n); void main () { // Create the array called "squares" here. display_array(squares, 10); // Display the array contents } // The following function will display an integer array of size n // accross one line of the screen. void display_array (int a[], int n) { int i; cout << endl; for (i = 0; i < n; ++i) cout << setw(6) << a[i]; cout << endl; }