Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int N;
- scanf("%d",&N);
- int A[N];
- for (int i=0; i<N; i++){
- cin >> A[i];
- }
- reverse(A,A+N);
- for (int i=0; i<=N; i++){
- cout << A[i] << "\n";
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment