Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n;
- while (cin >> n) {
- typedef int vector[n];
- vector v1;
- for (int i = 0; i < n; i++) cin >> v1[i];
- for (n -= 1; n >= 0; n--) {
- cout << v1[n];
- if (n != 0) cout << ' ';
- }
- cout << endl;
- }
- }
Add Comment
Please, Sign In to add comment