HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4- 68
10, 20, 30, 40
Input X:
50
Following execution of line 10, the values assigned to each variable will
be:
A(1) = 10
A(2) = 20
A(3) = 30
A(4) = 40
X = 50
Input list FOR clauses can be nested.
20 INPUT (FOR I=1 TO 3, (FOR J=1 TO 2 (FOR K=1 TO 2, B(I,J,K))))
For each combination of values of I, J, and K, the following table shows
the value that the above INPUT state assigns to each variable.
---------------------------------------------------------------------------------------------
|||| |
| Value of I | Value of J | Value of K | Variable Read |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 1 | 1 | 1 | B(1,1,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 1 | 1 | 2 | B(1,1,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 1 | 2 | 1 | B(1,2,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 1 | 2 | 2 | B(1,2,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 1 | 1 | B(2,1,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 1 | 2 | B(2,1,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 2 | 1 | B(2,2,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 2 | 2 | 2 | B(2,2,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 1 | 1 | B(3,1,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 1 | 2 | B(3,1,2) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 2 | 1 | B(3,2,1) |
|||| |
---------------------------------------------------------------------------------------------
|||| |
| 3 | 2 | 2 | B(3,2,2) |
|||| |
---------------------------------------------------------------------------------------------