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