PROGRAMMING:Store array in reverse order
Experiment 5: array
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
Input a set of data, store them in reverse order and output them( Other arrays are not allowed)
###Input format:
In the first line, enter integer n (2 < = n < = 100) to represent the number of array data; In the second line, enter n integers separated by spaces.
###Output format:
The output is stored in reverse order, with spaces in the middle and spaces after the last data.
###Input example:
Here is a set of inputs. For example:
```in
five
1 3 5 6 7
```
###Output example:
The corresponding output is given here. For example:
```out
7 6 5 3 1
```
answer:If there is no answer, please comment
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
Input a set of data, store them in reverse order and output them( Other arrays are not allowed)
###Input format:
In the first line, enter integer n (2 < = n < = 100) to represent the number of array data; In the second line, enter n integers separated by spaces.
###Output format:
The output is stored in reverse order, with spaces in the middle and spaces after the last data.
###Input example:
Here is a set of inputs. For example:
```in
five
1 3 5 6 7
```
###Output example:
The corresponding output is given here. For example:
```out
7 6 5 3 1
```
answer:If there is no answer, please comment