0

sort the array from smallest to largest

int [] array = new int[17]; array[0] = 1; array[1] = 15; array[2] = 4; array[3] = 11; array[4] = 9585; array[5] = 50; array[6] = 2; array[8] = 887; array[9] = 666; array[10] = 12; array[11] = 412; array[12] = 887; array[13] = 454; array[14] = 765; array[15] = 14242; array[16] = 1245;

7th May 2020, 8:57 AM
Paul Yusyk
Paul Yusyk - avatar
3 ответов
+ 4
First try self. Hint - use loop and compare next value with previous value.
7th May 2020, 8:59 AM
A͢J
A͢J - avatar
7th May 2020, 9:02 AM
Kevin ★
12th May 2020, 10:38 PM
Miss. ShahHosseinian
Miss. ShahHosseinian - avatar