Using the Repeat Command

The set of commands in the previous example were repeated four times. Rather than writing seven lines of code MSW Logo can automate the process in just ONE line using the repeat command.

eg repeat 4 [FD 100 RT 90]

The code to draw a SQUARE therefore becomes:

Home
CS
repeat 4 [FD 100 RT 90]

<- Back -Menu- Next ->