4 TRON
5 OPEN "output" FOR OUTPUT AS 1
7 ON ERROR GOTO 1000
10 FOR I=1 TO 10
20 FOR J=1 TO 10
22 GOTO 130
30 PRINT#1, "A", I, J
40 NEXT J
50 NEXT I
110 FOR I=1 TO 10
120 FOR J=1 TO 10
125 GOTO 30
130 PRINT#1, "B", I, J
140 NEXT J
150 NEXT I
999 CLOSE:END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT







