Sunday, October 18, 2009

My First Computer Program

Last week I wrote my first Computer program in Logo. I used a turtle to make shapes like triangle, square, and circle. The turtle understand commands like going forward and backward, and turning right and left. For example, to draw a square you can use the following commands:

forward 50
right 90
forward 50
right 90
forward 50
right 90
forward 50
right 90

and this is what turtle draws for you:

No comments:

Post a Comment