Home-work understanding

PHOTO EMBED

Sat Jan 08 2022 09:14:50 GMT+0000 (UTC)

Saved by @jarodnbuus #c++

#include <iostream>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;

int main() {
   int N; 
   cin >> N; 
   int arr[N]; 
   for (int i = 0; i < N; i++) {
        cin >> arr[i];        
    }
    for (int j = N - 1; j >= 0; j--) {
        cout << arr[j] << " ";
    }

    return 0;
}
content_copyCOPY