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

PROGRAMMING:The first n elements of the array are stored in reverse order

Luz5年前 (2021-05-10)题库401
Store the N integers in the array a in the reverse order (the length of array A is 20, 1 < n < 21), store any n integers in the first n elements, and output the N element values as required.
###Input format:
Enter the value of N in the first line and N integers in the second line.
###Output format:
Output n integers on a line, each followed by a comma.
###Input example:
Here is a set of inputs. For example:
```in
three
1 2 3
```
###Output example:
The corresponding output is given here. For example:
```out
The array has been inverted:
3,2,1,
```







answer:If there is no answer, please comment