Algorithms, Blockchain and Cloud

Hello World Program in LOGO


The Hello World! Programs are considered the easiest for most programming languages. The program will output string “Hello, World!” to the display device and return. On programming books, these programs are used as the first examples to the readers.

[Here] collects the “Hello World!” to almost every programming languages so far.

LOGO is the first programming language I have learned in my life. I now wonder if DOS batch is the first one. LOL.

[Here] is the PHP-based online LOGO interpreter. And the following is the “Hello World” in LOGO. Isn’t it interesting?

# hello, world
to helloworld
 hideturtle
 fd 20 left 180
 fd 40 left 180
 fd 20 right 90
 fd 20 left 90
 fd 20 left 180
 fd 40 left 90
 fd 20 left 90
 fd 20 right 90
 fd 20 right 90
 fd 10 right 90
 fd 20 left 90
 fd 10 left 90
 fd 30 left 90
 fd 40 left 180
 fd 40 left 90
 fd 20 left 90
 fd 40 left 180
 fd 40 left 90
 fd 40 left 90
 fd 20 left 90
 fd 20 left 90
 fd 20 left 90
 fd 60 left 90
 fd 40 left 180
 fd 40 left 90
 fd 20 left 90
 fd 20 left 180
 fd 20 left 90
 fd 20 left 90
 fd 40 left 180
 fd 40 left 90
 fd 40 left 90
 fd 20 left 90
 fd 20 left 90
 fd 20 left 90
 fd 40 left 90
 fd 20 right 90
 fd 20 right 90
 fd 5  left 90  
 fd 5  left 90  
 fd 25 left 180
 fd 40 left 90
 fd 40 left 90
 fd 20 left 90
 fd 20 left 90
 fd 20 left 90
 fd 20 left 90
 fd 40 left 180
 fd 40
end

lt 90 pu fd 200 pd rt 90 helloworld 

–EOF (The Ultimate Computing & Technology Blog) —

294 words
Last Post: Brainfuck Interpreter in Python
Next Post: Build Cache to Speed Up Website in PHP

The Permanent URL is: Hello World Program in LOGO (AMP Version)

Exit mobile version