Guest User

Untitled

a guest
Feb 10th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4.     int N;
  5.     scanf("%d",&N);
  6.     int A[N];
  7.     for (int i=0; i<N; i++){
  8.         cin >> A[i];
  9.     }
  10.     reverse(A,A+N);
  11.     for (int i=0; i<=N; i++){
  12.         cout << A[i] << "\n";
  13.     }
  14.     return 0;
  15. }
Add Comment
Please, Sign In to add comment