16th Jul 2024, 3:36 AM
Kishan
Kishan - avatar
3 Réponses
+ 3
Your program sorts in ascending order. To sort in descending, u just have to make a small change in code where you are comparing the numbers to sort them,. It's very easy, so try to find it yourself. If still you got any problem, let me know
16th Jul 2024, 5:58 AM
Ayush Singh
Ayush Singh - avatar
+ 1
There is bubble sort happening in 1low to high 9 than what should be done to this code to the high to low 9887654321 that like
16th Jul 2024, 3:41 AM
Kishan
Kishan - avatar
0
now you are finding for the smallest one so you can swap it with the first one, what will you be finding for if you need the reverse order?
16th Jul 2024, 9:29 PM
zemiak