+ 2
How to do this code double short High to low
https://sololearn.com/compiler-playground/cDLiLig9v1RN/?ref=app
3 Answers
+ 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
+ 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
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?