4 TRON
5 OPEN "output" FOR OUTPUT AS 1
7 ON ERROR GOTO 1000
10 WHILE A < 100
20 PRINT#1, A
30 A = A*2+1
40 WEND
110 WHILE 0
120 PRINT#1, A
130 A = A*2+1
140 WEND
150 WEND
160 WHILE -1
999 CLOSE: END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT
