Click to See Complete Forum and Search --> : Logo


Grahamb
February 14th, 2003, 01:42 AM
Does anyone know how to program in logo im having a little trouble doing some work for a friend.

lord loh
February 14th, 2003, 02:55 AM
What on earth are you doing with LOGO when the world has moved on to Photoshop and Corel Draw ?

Any way LOGO programming is very simple...
the commands are
FD (forward)
BK (backward)
RT (right turn)
LT (left turn)

these are fillewed by a number.
FD 10 stands for forward 10 steps
RT 45 stands for right turn 45 degrees from the turtle's current angle.

The following code will draw a dimond shape.RT 45
FD 100
RT 90
FD 100
RT 90
FD 100
RT 90
FD 100

This can also bo done byRT 45
REPEAT 4[FD 100 RT 90]

Excuse me if there are any errors in the code...I did not try them...and it is 7 years since I used LOGO