Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<vector>
- using namespace std;
- int main() {
- int n;
- cin >> n;
- vector<int> a(n); ///5 7 8 9 6 8
- for (auto& e : a) cin >> e;
- for (int i = n - 1; i >= 0; i--) {
- cout << a[i] << ' ';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement