Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- freopen("input.txt", "rt", stdin);
- freopen("output.txt", "wt", stdout);
- int n;
- cin >> n;
- int *mas = new int[n];
- for (int i = 0; i < n; i++)
- cin >> mas[i];
- for (int i = n - 1; i >= 0; i--)
- cout << mas[i] << " ";
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement