fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n;
  7. int tab[10000];
  8. cin >> n;
  9. for(int i=0;i<n;i++) {
  10. cin >> tab[i];
  11. }
  12. for(int i=n-1;i>=0;i--) {
  13. cout << tab[i] << endl;
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Standard output is empty