On Planet Linear Chaos, its inhabitants—ordered isomorphs—party with reckless abandon during the celebration of non-equilibrium! There's an extremely popular game called "flip the array". You too can play: create an array of 10 numbers, arrange them in reverse order, and then display them. Isomorphs really know how to party, don't they?
Flip the array
- 2
Locked
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Michael F
14 July 2021, 04:45
for (int i = 0; i < n / 2; i++) {
int j = n - 1 - i;
can someone please explain the logic? i get the syntax but not the logic
0
LT
30 June 2021, 17:16
Use 2 for loops to complete the task. First one for reading the input and store it in the array. The second one is for printing the array in reverse order.
0
Aakankasha Sharma
9 June 2020, 11:28
I created an array of 10 integers using Integer class, and the task failed.
+1
Pahunchik
11 May 2021, 10:53
same thing
0
carlos oliveira
30 April 2019, 04:31
conditions:
3. Display the elements of the array in reverse order. Display each value on a new line.
requirements:
4. The array must be displayed in reverse order.
Suggestion: "I think this should be better understated . At least for me, i freak out to sort the array elements, whats doesn't apply for the task. Lol.
3. Display the elements of the array in reverse "INPUT" order. Display each value on a new line.
requirements:
4. The array must be displayed in reverse "INPUT" order.
+1