Hello World

Hello World Programs
Hello World Program is usually the first program someone writes when learning a programming language. Click on the links to download the programs, or view the code below, for each programming language.

NXT-G
Add NXT-G Program Link/Image Here

NBC
/* Program Name: "Hello World.nbc" This NBC program demonstrates how to display "Hello World!" on the NXT Brick's Screen.

thread main TextOutEx(0, 0, 'Hello World!', 0) // TextOutEx(x, y, msg, clear) Displays the text in msg (string) on the screen

wait 2000 // Wait for 5 seconds so user can read what's on the screen

exit endt

NXC
/* Program Name: "Hello World.nxc" This NXC program demonstrates how to display "Hello World!" on the NXT Brick's Screen.

task main {  TextOut(0, 0, "Hello World!", 0); // TextOut(x, y, msg, clear) Displays the text in msg (string) on the screen

Wait(5000); // Wait for 5 seconds so user can read what's on the screen }

LeJOS
Add program code here.

Use the following template:

//code goes here