0

Convert array1D to array2D

I have two 1D array (both of them have 10 elements)and i want to convert it to one 2D array(20 elements [4][5]) .I wrote this code to arrange the elements of an array in ascending order but it gives me numbers in descending order. Can anyone help which part of this code is wrong?? https://code.sololearn.com/cCS0xn2BOUAS/?ref=app

13th Apr 2020, 5:32 PM
Armina
Armina - avatar
2 Respostas
+ 1
just change your comparison to < in your swap routine.
13th Apr 2020, 6:12 PM
rodwynnejones
rodwynnejones - avatar
0
rodwynnejones Thanks alot
13th Apr 2020, 6:16 PM
Armina
Armina - avatar