// z1.5.2-arrays // #include using namespace std; int main() { const int NUM_ELEMENTS = 8; // Number of elements in array int userVals[NUM_ELEMENTS]; // User numbers int i; // Loop index cout << "Enter " << NUM_ELEMENTS << " integer values..." << endl; for (i = 0; i < NUM_ELEMENTS; ++i) { // cout << "Value: "; cin >> userVals[i]; } cout << "You entered: "; for (i = 0; i < NUM_ELEMENTS; ++i) { cout << userVals[i] << " "; } cout << endl; return 0; }