This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
basic [2020/04/16 18:16] smj |
basic [2020/04/18 01:30] smj |
||
---|---|---|---|
Line 18: | Line 18: | ||
====== BASIC Programming Examples ====== | ====== BASIC Programming Examples ====== | ||
- | There are many statements available to you in BASIC, but here are a few that can get you started and will work across many BASIC interpreters. | + | There are many statements available to you in BASIC, but here are a few that can get you started and will work across many BASIC interpreters. |
UNIX System V R.3 (WINS) (lcm3b2) | UNIX System V R.3 (WINS) (lcm3b2) | ||
Line 42: | Line 42: | ||
| | ||
1 | 1 | ||
- | | + | |
* REM *** STRINGS are quoted in BASIC and to use a variable as a string, just append ' | * REM *** STRINGS are quoted in BASIC and to use a variable as a string, just append ' | ||
| | ||
Line 49: | Line 49: | ||
* print a$ | * print a$ | ||
Hello World! | Hello World! | ||
- | + | | |
* REM *** Now let's write it as a program with line numbers | * REM *** Now let's write it as a program with line numbers | ||
*10 print "Hello World!" | *10 print "Hello World!" | ||
*20 end | *20 end | ||
+ | |||
* REM *** The LIST command will show us what we typed in | * REM *** The LIST command will show us what we typed in | ||
*list | *list | ||
10 print "Hello World!" | 10 print "Hello World!" | ||
20 end | 20 end | ||
- | + | | |
* REM *** The RUN command will run our program | * REM *** The RUN command will run our program | ||
*run | *run | ||
Line 168: | Line 168: | ||
====== BASIC Reference Manuals ====== | ====== BASIC Reference Manuals ====== | ||
- | * Control Data Corporation BASIC(([[http://bitsavers.trailing-edge.com/pdf/cdc/ | + | Visit our repository for [[https://livingcomputers.org/ |