Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tab[100];
- int i=0;
- int n;
- cin >> n;
- while (n>i)
- {
- cin >> tab[i];
- i++;
- }
- for (i = n-1; i >= 0 ; i--)
- {
- cout << tab[i] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment