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

PROGRAMMING:Invert array

Luz5年前 (2021-05-10)题库381
Keyboard input multiple integers, with 9999 end, the number is not more than 30, will be stored in the array v. Then the contents of the array V will be inverted and output, that is, the first to the last, the last to the first
###Input format:
Enter n integers and end with 9999.
###Output format:
The inverted array will be output, with a space between the data.
###Input sample 1:
Here is a set of inputs. For example:
```in
92 -13 72 18 66 28 9999
```
###Output sample 1:
The corresponding output is given here. For example:
```out
28 66 18 72 -13 92
```
###Input sample 2:
Here is a set of inputs. For example:
```in
-2 52 0 192 35 9999
```
###Output sample 2:
The corresponding output is given here. For example:
```out
35 192 0 52 -2
```







answer:If there is no answer, please comment