/* 6.914, Example 1.2 for loops For loops run with a series of statements. - The first statement establishes a variable and gives that variable a value. "int i = 5;" - The second statement sets a condition for which the loop inside the for loop will run. As soon as this condition becomes false, the for loop will stop executing and the code afterward will be processed. "i > 0" - The third statement sets a variable-changing process: typically, increment or decrement. "i--" The general form, then, is: for(init; test; execute){ //code to run if test evaluates to true goes here } */ void setup(){ size(300, 300); strokeWeight(8); noLoop(); } void draw(){ for (int i=5; i>0; i--){ point(i*10, i*10); println("i = "+i); } }