C#
C#

help

Root Question Message

Reki-
Reki-11/16/2022
❔ Loop pyramid

how to write this one
thinker227
thinker22711/16/2022
You know what a for loop is?
Reki-
Reki-11/17/2022
yes
Reki-
Reki-11/17/2022
but i dont know how to do this loop pyramid
Reki-
Reki-11/17/2022
its hard for me
Reki-
Reki-11/17/2022
can you write this loop code for me? just once
tebeco
tebeco11/17/2022
no
tebeco
tebeco11/17/2022
can you show us the loop you wrote instead
tebeco
tebeco11/17/2022
with an image of the rendering you have
tebeco
tebeco11/17/2022
so that you're doing the code
tebeco
tebeco11/17/2022
and we're trying to help
Message Not Public

Sign In and Join Server To See

11/17/2022
Ero
Ero11/17/2022
This has nothing to do with padding
thinker227
thinker22711/17/2022
Well, firstly you'll want to loop between 0 and 6. Then for every iteration, you'll have to loop between the current number and 0, then from 0 back to the current number.
Ero
Ero11/17/2022
What
Ero
Ero11/17/2022
Or do the writelines in the loop i guess
Ero
Ero11/17/2022
Nah don't do the spoonfeed thing
Ero
Ero11/17/2022
I was trying to show why what you suggested is bogus
thinker227
thinker22711/17/2022
I mean, there's a lot of ways you could do this. That's a completely valid way, although I suspect it's probably not the "intended" one in this situation.
thinker227
thinker22711/17/2022
Also you practically just wrote half the thing for them
Reki-
Reki-11/17/2022
Thank you everyone I will try
Message Not Public

Sign In and Join Server To See

11/20/2022
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy