![]() ![]() Declare the variable The length will be the user’s input e.g. For example: Variables can be used to define the length of the square. REPEAT 20SQUARE RT 18 REPEAT 60PENTAGON RT 6 REPEAT 10DECAGON RT 36. MSW LOGO COMMANDS Command Description Example FD Moves turtle forward FD 100 BK Moves turtle backward BK 100 Right or RT Turns the head of the turtle to the right RT 90 Left or LT Turns the head of the turtle to the left LT 90 Home Brings the turtle to its starting position Home CS or CLEARSCREEN Erases drawing on the main screen CS.Example: Now, you can just simply type ‘square’ and it will automatically make a square.In MSW Logo, procedure is the steps for the turtle to do something. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |