// Nested loops: two for loops inside each other int x,y; // We need two loop counters size(400,400); for(x=0;x<10;x++) // Outer loop runs 10 times { for(y=0;y<10;y++) // Inner loop here runs 10 every time, so its 10 by 10: a hundred circles { ellipse(x*40,y*40, 10,10); } }