13 Replies
You know what a for loop is?
yes
but i dont know how to do this loop pyramid
its hard for me
can you write this loop code for me? just once
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
this should give you an idea on how to solve the problem: https://learn.microsoft.com/en-us/dotnet/standard/base-types/padding
Padding Strings in .NET
Learn how to pad strings in .NET. Use the String.PadLeft and String.PadRight methods to add leading or trailing characters to achieve a specified total length.
This has nothing to do with padding
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.
What
Ero#1111
REPL Result: Success
Console Output
Compile: 644.885ms | Execution: 84.463ms | React with ❌ to remove this embed.
Or do the writelines in the loop i guess
Nah don't do the spoonfeed thing
I was trying to show why what you suggested is bogus
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.
Also you practically just wrote half the thing for them
Thank you everyone I will try
to center the output
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.