Logomation Lesson 3

Loops are said to be nested when one loop is inside the other. Each inner loop is indented further. In the next program there are two levels of indentation.

//standard loop

repeat 4

//nested loop

repeat 8

forward 50

backward 50

right 45

//back to the standard loop

up

forward 100

right 90

down

Remember: comments are indented to the line up with the line that follows it


On your own #3:

Four Squares :
draw 4 squares using nested repeat loops—include 2 or more good comments.


Follow the lessons to number 4

Go back to the Lesson List page