Logo (programming Language) - Syntax

Syntax

Commands may be written on one line, or more. Many commands have mnemonic short forms; for example FORWARD and RIGHT are coded FD and RT respectively. This makes the input less onerous. Anything written after the ; (semicolon) is ignored, allowing the coder to insert comments.

; draws a square with sides 100 units long FORWARD 100 LEFT 90 FORWARD 100 LEFT 90 FORWARD 100 LEFT 90 FORWARD 100 LEFT 90 FD 100 RT 120 FD 100 RT 120 ; draws a triangle FD 100 RT 120

The Hello World program in Logo looks like this:

print

Read more about this topic:  Logo (programming Language)