FANDOM


Hello World ProgramsEdit

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-GEdit

Add NXT-G Program Link/Image Here

NBCEdit

/*
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


NXCEdit

/*
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
}

LeJOSEdit

Add program code here.

Use the following template:


//code goes here

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.