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

PROGRAMMING:Sort each row of two-dimensional array

Luz5年前 (2021-05-10)题库435
A four × 5 integer two-dimensional array, input data from the keyboard, and arrange each row of the array from small to large, then output.
###Input format:
Enter a matrix of 4 rows and 5 columns. There is no space before the first number in each row, and there is a space between each number in each row.
###Output format:
Output 4 rows and 5 columns of matrix, there is no space before the first number of each row, each number output occupies 4 columns width.
###Input example:
```in
1 5 4 2 6
3 2 5 8 4
8 5 4 1 5
9 5 1 2 6
```
###Output example:
```out
1 2 4 5 6
2 3 4 5 8
1 4 5 5 8
1 2 5 6 9
```






answer:If there is no answer, please comment