Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. while (cin >> n) {
  7. typedef int vector[n];
  8. vector v1;
  9. for (int i = 0; i < n; i++) cin >> v1[i];
  10. for (n -= 1; n >= 0; n--) {
  11. cout << v1[n];
  12. if (n != 0) cout << ' ';
  13. }
  14. cout << endl;
  15. }
  16. }
Add Comment
Please, Sign In to add comment