#Z15104. 数组逆序重存放

数组逆序重存放

Description

Reverse the order of elements in an array. For example, the original sequence is 8, 6, 5, 4, 1. The requirement is to change it to 1, 4, 5, 6, 8.

Input Format

The input consists of two lines:

  • The first line contains the number of elements in the array, n (1 < n < 100).
  • The second line contains n integers separated by spaces.

Output Format

Output one line: the integers of the reversed array, separated by spaces.

5
8 6 5 4 1

1 4 5 6 8