Jump to content

GLBasic Programming/BASIC/GOTO

From Wikibooks, open books for an open world

This is the current revision of this page, as edited by PCFreak20 (discuss | contribs) at 13:39, 16 March 2012. The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 

Eplanation

[edit | edit source]

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

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