-->
当前位置:首页 > 题库

PROGRAMMING:Store the numbers in the array in reverse order

Luz5年前 (2021-05-10)题库480
This problem requires writing a program to store the given $$n $$integers in the array, store the $$n $$numbers in reverse order, and then output the elements in the array in order.
###Input format:
Input gives a positive integer in the first line, $$n $$($$1 / Le n / Le 10 $$). On the second line, enter $$n $$integers, separated by spaces.
###Output format:
Output the processing results of these $$n $$integers in one line. The adjacent numbers are separated by a space in the middle, and there must be no extra space at the end of the line.
###Input example:
```in
four
10 8 1 2
```
###Output example:
```out
2 1 8 10
```






answer:If there is no answer, please comment