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

PROGRAMMING:Array element value + 1

Luz5年前 (2021-05-10)题库447
Create a one-dimensional array a, the length of the array is input through the keyboard, and then assign values to each element of the array through the keyboard. After the assignment, the value of each element in the array A is + 1, and finally each element of the array A is output.
###Input format:
In the first line, enter an integer, which is the length of an array a
The second line enters the value of each element in the array
###Output format:
Each row outputs one element of the array
###Input example:
Here is a set of inputs. For example:
```in
four
1 2 3 4
```
###Output example:
The corresponding output is given here. For example:
```out
two
three
four
five
```







answer:If there is no answer, please comment