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

PROGRAMMING:5.2 - assign 54321 values to array elements in turn

Luz5年前 (2021-05-10)题库516
Modify the program in code listing 5-3 to assign values of 5, 4, 3, 2, and 1 to the elements in the array from the beginning.
-----Exercise 5-2 of Mingjie C language
The requirements of listing 5-3 are as follows:
```
/*
Assign 1, 2, 3, 4, 5 to each element of the array in turn and display (using the for statement)
*/
```
###Input example:
The input is empty
```in
```
###Output example:
```out
v[0] = 5
v[1] = 4
v[2] = 3
v[3] = 2
v[4] = 1
```







answer:If there is no answer, please comment