How to solve this question ? Code needed (java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How to solve this question ? Code needed (java)

1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 ( I wish the code could also be a simple one). 20 19 18 17 16 21 22 23 24 25

16th Nov 2022, 9:37 PM
Rakan Ezzedin
2 Answers
+ 4
Try to search the Code section for examples
17th Nov 2022, 12:42 AM
Ipang
+ 3
for (int x=1; x<=25; x++) System.out.format(x%5==0?"%d\n":"%d ",x);
16th Nov 2022, 9:53 PM
SoloProg
SoloProg - avatar