Guest User

Untitled

a guest
Jan 6th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6. int tab[100];
  7. int i=0;
  8. int n;
  9. cin >> n;
  10.  
  11. while (n>i)
  12. {
  13. cin >> tab[i];
  14. i++;
  15. }
  16.  
  17. for (i = n-1; i >= 0 ; i--)
  18. {
  19. cout << tab[i] << " ";
  20. }
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment