0

I've written a program prints individual numbers, but I want her to appear in descending in java

I have a question I've written a program prints individual numbers, but I want her to appear in descending rather than ascending order How can I do that? I will attach my attempts below Thanks

10th Nov 2020, 1:01 AM
STOP
STOP - avatar
5 Réponses
+ 4
STOP so you mean *ascending* order. It's simple, Just reverse the loop. Like this👇 https://code.sololearn.com/cJI0OOU60aXF/?ref=app
10th Nov 2020, 2:09 AM
Arsenic
Arsenic - avatar
+ 1
https://code.sololearn.com/ck5gBA10VOjQ/?ref=app
10th Nov 2020, 1:15 AM
STOP
STOP - avatar
+ 1
STOP you progam already printing those numbers in descending order. Are you sure you shared the correct program with us ?
10th Nov 2020, 2:04 AM
Arsenic
Arsenic - avatar
+ 1
Arsenic i want output start from the smaller number to the big , like this : 51 53 55 .. ..
10th Nov 2020, 2:07 AM
STOP
STOP - avatar
+ 1
thank you Arsenic
10th Nov 2020, 2:59 AM
STOP
STOP - avatar