Code

size(500,100);
background(255);

for (int x=1; x<=75; x=x+7){
  for (int y=40; y<=600; y=y+80){
    line(40+y,80,x+y, 20);
  }
}

0202 - Nested Iteration II: Not a 'grid'

Statement:As you have seen, nested iteration is often used to create two-dimensional grids. But it's actually much more versatile than this, since it can be used to create any repetition of (internally repetitive) elements.

Use a single pair of nested for{} loops to reproduce the pattern illustrated here : a group of six "fans", each of which has ten (oops, eleven! Thanks Moshe!) lines.

hide statement