Loops not clear

I don’t really understand how loop work, can someone help , especially that line part

Which line?
Post the code you can’t understand.

the part of making rhombus with ‘*’

As I said previously.

Maybe this Can help…