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.