Multiple variables in one for loop?

@sleepycode remove the second float declaration in the for loop

void sqrNew() {
      for (float x = random(295,300), y = random(355,360); x < 700 && y < 700; x = x + 55, y = y + 55) {
        noStroke();
        fill(random(255),random(255),random(255));
        rect(x,y,random(40,53),random(40,53));
        println(x + " " + y);
      }
}
3 Likes