AT&T 6300 Programmer's Manual page 279

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Syntax
linenum
Remarks
Example
GOTO
Statement
Transfers control to a specified program line.
GOTO linenum
is the number of a line in the program
If
linenum is the line number of an
executable statement, that statement and
those following are executed.
If
it is the line
number of a nonexecutable statement,
execution proceeds at the first executable
statement encountered after linenum.
If
the
specified "linenum" does not exist in the
program, an "Undefined line number" error is
returned.
10 READ R
20 PRINT "R = 'jR,
30 A=3.14*R 02
40 PRINT "AREA = 'jA
50 GOTO 10
60 DATA 5,7,12
Ok
RUN
R
=
5 AREA = 78.5
R
= 75 AREA = 153.86
R
= 12 AREA = 452.16
?Out of data in 10
Ok
7-123

Advertisement

Table of Contents
loading

Table of Contents