First we "make a variable" called corner, and set it equal to zero.
Then we start a while loop, which is similar to a Scratch repeat block, saying we want to keep doing something for as long as our 'corner' variable is less than 100.
Inside the curly brackets, we stroke a rectangle, and change our corner variable by five. It keeps getting larger by five, and when it's no longer less than 100, the while-loop will finish.
|