import java.util.Arrays;
public class Task03 {
public static void main(String[] args) {
int[][] a={ {1,10,4,3},{6,11,12,5,13},{8,2,14,15,16,17},{18,9,7,19,20}};
int i,j,k;
for(i=0;i<a.length;i++){
for(j=0;j<a[i].length-1;j++){
for(k=0;k<a[i].length-1;k++){
if(a[i][k]>a[i][k+1]){
int temp=a[i][k+1];
a[i][k+1]=a[i][k];
a[i][k]=temp;
public class Task03 {
public static void main(String[] args) {
int[][] a={ {1,10,4,3},{6,11,12,5,13},{8,2,14,15,16,17},{18,9,7,19,20}};
int i,j,k;
for(i=0;i<a.length;i++){
for(j=0;j<a[i].length-1;j++){
for(k=0;k<a[i].length-1;k++){
if(a[i][k]>a[i][k+1]){
int temp=a[i][k+1];
a[i][k+1]=a[i][k];
a[i][k]=temp;