?"Hardware = ";
IF HARDWARE THEN ?"Normal 3DS" ELSE ?"New 3DS/2DS"
LOCATE 20,15
?"Press any button to begin"
WHILE !BUTTON() WAIT:WEND
GOTO @START
@START ...
IF HARDWARE THEN is a faster way to say IF HARDWARE!=0 THEN
("if hardware is not equal to zero then")
?"BLAH" is a faster way to say PRINT "BLAH" which adds text to the screen
Likewise adding ; to the end of a print statement stops the program from making a line break
Learn to use DEF
Code inside a DEF statement does not get ran unless if you tell it to run
?"Five random numbers from one to 100:"
FOR MYCOUNTER=1 TO 5
?"Number ";MYCOUNTER;" is ";OneTo100()
NEXT
DEF OneTo100()
RETURN 1+RND(100)
END
The output is
Five random numbers from one to 100:
Number 1 is 54
Number 2 is 89
Number 3 is 7
Number 4 is 11
Number 5 is 93