Page 60 - Touchcode_C3_Flipbook
P. 60
Let us understand how to repeat instructions by writing a program to draw
patterns.
Draw a square
Leave space
Draw a circle
Leave space
Draw a square
Leave space
Draw a circle
Hence, we can make a pattern by repeating a square and a circle 4 times. So the
repetition of a square and a circle is a loop.
Look at the program to draw a square.
Start facing to the right.
Draw a straight line of 1 cm.
Turn fully right.
Draw a straight line of 1 cm.
Turn fully right.
Draw a straight line of 1 cm.
Turn fully right.
Draw a straight line of 1 cm.
58 Touchcode-III

