Last modified on 16 March 2012, at 13:39

GLBasic Programming/BASIC/GOTO

This is the use of GOTO:

// A GOTO sample 
beginning:
LET a=RND(600)
LET b=RND(400)
PRINT "Wow",a ,b
SHOWSCREEN
MOUSEWAIT
GOTO beginning

EplanationEdit

It repeats the part "beginning", so the numbers change fast.

Previous: BASIC/DO...LOOP Index Next: BASIC/Random Number Generation