File: TEST.BAS

package info (click to toggle)
pcbasic 2.0.7-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 35,416 kB
  • sloc: python: 28,411; sh: 103; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
10 REM PC-BASIC test 
20 REM LET syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 A=1
60 LET A=1
65 LET A$="1111"
70 LET A$="22222" LPRINT
75 PRINT#1, A$
80 LSET 
90 LSET A=1
100 LSET A$="3"
110 LSET B$="4" LPRINT
120 PRINT#1, A$
180 RSET 
190 RSET A=1
200 RSET A$="3"
210 RSET B$="4" LPRINT
220 PRINT#1, A$
999 END
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT