// Example 5.2, page 129 // Schaum's Outline of Programming with C++ by John R. Hubbard // Copyright McGraw-Hill, 1996 using namespace std; #include int main() { const int size = 4; double a[size]; cout << "Enter " << size << " real numbers:\n"; for (int i = 0; i < size; i++) { cout << i << ": "; cin >> a[i]; } cout << "Here they are in reverse order:\n"; for (int i = size-1; i >= 0; i--) cout << "\ta[" << i << "] = " << a[i] << endl; return 0; }