loops

by Esther Lee
  • Show Sketch
/**@peep sketchcode */
size(200,200);
for(int y=20; y<height; y+=20){
  for(int x=20; x<width; x+=20){
    if(x==y){
      ellipse(x,y,10,10);
    }
    else{
      rect(x,y,10,10);
    }
  }
}

Comments

Nobody has said anything yet.