Hello World
"Hello World" has been a traditional first program dating back to at least the 70s, and possibly earlier. It's only fair that we make it our first entry here, despite the simplicity. Here's the listing:
100 PRINT "HELLO, WORLD!"
200 DO: SLEEP 1: LOOP
BASIC is a procedural language meaning that it runs each line in order through the listing. We can technically omit the line numbers because we're not using any GOTO or GOSUB statements that might jump around the code.
In most versions of BASIC we can substitute a single question mark for the full PRINT statement.
? "HELLO, WORLD"
works perfectly fine, and is the only part of the code you really need. Normally when you run a BASIC program created in Basic Anywhere, it'll give you a pop-up to alert you when the listing ends. To avoid this I've added the second line:
200 DO: SLEEP 1: LOOP
This essentially pauses the program indefinitely with SLEEP and repeats that indefinitely with the DO-LOOP.