fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int tab[10];
  7.  
  8. for (int i=0; i<10; i++)
  9. cin >> tab[i];
  10.  
  11. for (int i=9; i>=0; i--)
  12. cout << tab[i] << " ";
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5324KB
stdin
10 15 20 25 30 35 40 45 50 55
stdout
55 50 45 40 35 30 25 20 15 10