Read an integer N. This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Finally, display the numbers in reverse order (from last to first).
Instructions:
An integer N, followed by N integers, one per line.
Print the N numbers in reverse order, one per line.
Input:
5
3
7
1
9
5
Output:
5
9
1
7
3