PROGRAMMING:Find the maximum and minimum value of two-dimensional array and realize the exchange
There is an integer two-dimensional array with 5 rows and 4 columns. Please find out the maximum and minimum values of the two-dimensional group number, and exchange the positions of the two numbers.
###Input format:
Please enter 20 integers. Only one space can be used between the data.
###Output format:
In a row, the output results are in the format of "max = maximum, min = minimum". The maximum and minimum values are output as is, without column width control.
In the next row, output the two-dimensional array with the maximum and minimum values exchanged. Each data output occupies 5 columns, right aligned.
###Input example:
55 14 13 10
20 34 21 11
89 13 45 14
9 5 18 77
90 22 38 82
###Output example:
max=90,min=1
55 14 13 10
20 34 21 11
89 13 45 14
9 90 18 77
5 22 38 82
answer:If there is no answer, please comment
###Input format:
Please enter 20 integers. Only one space can be used between the data.
###Output format:
In a row, the output results are in the format of "max = maximum, min = minimum". The maximum and minimum values are output as is, without column width control.
In the next row, output the two-dimensional array with the maximum and minimum values exchanged. Each data output occupies 5 columns, right aligned.
###Input example:
55 14 13 10
20 34 21 11
89 13 45 14
9 5 18 77
90 22 38 82
###Output example:
max=90,min=1
55 14 13 10
20 34 21 11
89 13 45 14
9 90 18 77
5 22 38 82
answer:If there is no answer, please comment