Skip to content
← Back to Community
Please tell me how to use GOTO in QBasic
Profile icon
KavyanshJoshi08

Please tell me what is the mistake in htis repl

Voters
Profile icon
SachinKapoor
Profile icon
KavyanshJoshi08
Comments
hotnewtop
Profile icon
DrHaiderHaider

This dose not work

Profile icon
RYANTADIPARTHI

Just do this:

1 PRINT "1" 2 GOTO somenumber

and so on

Profile icon
Coder100

Have you tried adding line numbers?

1 PRINT "1" 2 PRINT "2" 3 PRINT "3" 4 GOTO 8 5 PRINT "5" 6 PRINT "6" 7 PRINT "7" 8 PRINT "8" 9 PRINT "9"
Profile icon
Wumi4

You need to type number line after the command like this:

10 PRINT "1" ... 40 GOTO 80 ... 80 PRINT "8" 90 PRINT "9"

Skip the "..." part. They are for clarity.