Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- const int MAX_SIZE = 99;
- int numbers[MAX_SIZE]{};
- int arrSize;
- cin >> arrSize;
- for (int i = 0; i < arrSize; i++) {
- cin >> numbers[i];
- }
- for (int i = arrSize - 1; i >= 0; i--) {
- cout << numbers[i] << ' ';
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement