File: option.bas

package info (click to toggle)
bwbasic 2.20pl2-14
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,784 kB
  • sloc: ansic: 21,005; makefile: 80
file content (8 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
1 PRINT "OPTION.BAS -- Test OPTION BASE Statement"
5 OPTION BASE 1
10 DIM n(5) 
20 FOR i = 1 to 5 
30 LET n(i) = i + 2 
40 PRINT "The value at position ";i;" is ";n(i) 
50 NEXT i 
60 END