I suppose there might be a way to use two separate for-loops. I mean, when I look at the picture it looks to me like there's two separate groups of lines, the big box on the outside and the small box on the inside. So maybe you could use one for-loop for the big box and another for-loop for the small box.
But why would you approach it that way? If it were me I would start by figuring out how to draw just one of the hundreds of lines which make up that picture (which I also have absolutely no idea how to do that). Then perhaps many of the lines differ by having one or two parameters which vary, and you could then write a loop to collect all of those lines together.
Anyway, I have to say that "How do I do this with two loops?" is not a question which would ever occur to me when trying to draw that picture.