EasyManuals Logo

IBM 1620 User Manual

IBM 1620
111 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #24 background imageLoading...
Page #24 background image
Computed
GO
TO
24
This
statement
also specifies
the
number
of
the
next
statement
to
be
performed
It
is different from
the
unconditional
GO
TO,
because
the
statement
numbe
that
the
program
is
transferred
to
can
be
altered
during
the
program
in
a com
puted
GO
TO
statement.
Format:
Example:
"GO
TO
(nl'
nfl,
..
" n
m
),
i"
where
nJ, nfl,
..
"
nm
are
statement
numbers
and
i is a
ifixed
point
variable.
The
variahle
may
not
be
subscripted.
The
parentheses
enclosing
the
statement
numbers,
the
com-
mas
separating
the
statement
numbers,
and
the
,comma fol-
lowing
the
right
parenthesis,
are
all
required
punctuation.
GO
TO
(3,4,5),
L
GO
TO
(4,4,8,14,24),
M
The
computed
GO "TO
statement
transfers
the
program
to
the
1st, 2nd, etc.
statement
number
in
the
list
depending
upon
whether
the
value
of
i is 1, 2 . . .
etc.
The
variable
i
must
never
have
a
value
greater
than
the
number
of items or
the
list
in
the
parentheses.
In
the
first example above,
if
the
value
of L is 2,
the
program
is transferrec
to
statement
4.
In
the
second
example,
if
the
value
ofM
becomes
1
or
2
the
pro·
gram
is transferred. to
statement
4.
If
it
becomes
3, 4,
or
5,
the
program
is trans·
ferred
to
statements
8,
14,
and
24, respectively.
An
example
is
shown
below:
STATEMENT
NUMBER
FORTRAN
STATEMENT
~~
5 6 7
10
15
20 25 30 35
40
45
50
55
I
1 I I
I I I
I
,
--1._
,
A=3
. I
I I I
I I
, ,
8=4.,
(;::.5.,
I
I I
I
I I I
K=Q
I I
I I I
, , ,
I
K=
K+
J
I
,
I
I
I
I I I I
GO
TiO
f1O.20
30)
K
I I I I I I I
,
I
I I I I I
I
I
~
I
I I I I I I
~.
30
F:.A
-,8
I
I
I
GO
TO
12
I I I
I
I I I
I
I
20
E=A-C
--~
GO
TID
I
I
10
D=B-,C
I
,
I
I
I I
I
I I
GO
TO J
I I I I I I
I
I I
I
I I
I
I
I
I I I
,
I
I
I I
~~
~1~2~
,
I I
I
,
__
-1
I~
In
the
example,
D,
E,
and
F
are
computed,
in
that
order,
and
the
program
is
transferred
to
statement
12.
This
is a simplified
example
used
to
illustrate
a
computed
GO
TO
statement.
If
these
were
the
only
computations
in
a
program,
you
would
probably
just
compute
D,
E,
and
F
in
sequence
without
using a
computed
GO
TO
statement.

Other manuals for IBM 1620

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 1620 and is the answer not in the manual?

IBM 1620 Specifications

General IconGeneral
CategoryDesktop
ManufacturerIBM
Model1620
Introduced1959
WeightApproximately 1, 000 pounds
Memory20, 000 to 60, 000 digits
ProgrammingFORTRAN, Symbolic Programming System (SPS)
CPUDecimal, variable word length
StorageMagnetic disk drive (IBM 1311)

Related product manuals