Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Define the one-dimensional array double array 10 in the main function, read the array elements from the keyboard, customize the following functions, and output the array.
Define the one-dimensional array double array 10 in the main function, read the array elements from the keyboard, customize the following functions, and output the array.
1. First, define a constant size to control the array size.

2. Define a custom function to input the value of each element in a two-dimensional array.

3. Use double loop to input the values of two-dimensional array.

4. In the main function, two integer variables M and N are defined to store the rows and columns of the array.

5. Next, define a two-dimensional array.

6. Enter the number of rows and columns of the array and save them in variables M and N. ..

7. Then, enter a two-dimensional array and save it in variable A. ..

8. Run the program, enter a two-dimensional array in the computer, and the computer will automatically read in and output it.