#Can someone please explain the nesting of loops to me?

23 messages ยท Page 1 of 1 (latest)

soft quiverBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

sterile stag
#

you not understand what is "\n"?

spice phoenix
sterile stag
#

holy

spice phoenix
#

I didn't understand the nesting of loops

#

๐Ÿ˜ญ

#

Srry ik I underlined it ๐Ÿ˜“

sterile stag
#

so your program just will return 5x5 star square

#

you just call second loops with first loops time

#

dont think that is different function or something

sterile stag
#

i forgot about i = 1

#

so like

sterile stag
spice phoenix
#

๐Ÿฅฒ

#

Well I didn't understand the whole concept

#
  • this program too
sterile stag
#

really simple example is 2d array

sterile stag
#

basicly for loops just in first part decleare local variable then check if statment is valid then run block of code and then apply step, loop is stop when statment is not valid

spice phoenix
soft quiverBOT
#

@spice phoenix

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

spice phoenix
#

!solved