#how do i mke this code work reverse??

26 messages · Page 1 of 1 (latest)

devout ore
#

i want to know if

           for(int i = 1; i <= x; i++) {
               System.out.print(x + " ");
           }
           System.out.println();
           ```       can create a output like   ```
0
0 1
0 1 2
0 1 2 3
0 1 2 3 4
0 1 2 3 4 5```

how can i make it reverse so it prints like ```
0 1 2 3 4 5
0 1 2 3 4
0 1 2 3
0 1 2
0 1
0 ```
daring basinBOT
#

This post has been reserved for your question.

Hey @devout ore! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

devout ore
#

please i need some urgent help

daring basinBOT
#

<@&765578700724371486>

Requested by ! YS#3518
wild lantern
#

Are you being serious?

terse frigate
#

exam?))

devout ore
devout ore
wild lantern
#

...

terse frigate
#

project for exam?)

devout ore
#

i just want my program to create a output like

#
0 1
0 1 2
0 1 2 3
0 1 2 3 4
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4
0 1 2 3
0 1 2
0 1
0 ```
#

ik how to make the first half but confused with reverse

terse frigate
#

and you want it urgent :))
Any ideas how to do it?
btw, that snippet of code won't output the provided output

#

it gives 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

devout ore
#

hm

#

so how can i figure out the problem?

#

@terse frigate

terse frigate
#

try to understand what your code does

devout ore
terse frigate
#

seriously, what does the first line of code do?

devout ore
terse frigate
#

yeah, why not

devout ore
#

i guess i should figure it out myself