size(500,400);
int x = 100;
int y = 200;
int nrects2 = 12;
for(int i=0; i<nrects2; i++)
rect(x+(i*10),y,10,50);
x = 300;
y = 200;
int nrects3 = 18;
for(int i=0; i<nrects3; i++)
rect(x+(i*10),y,10,50);
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.