GW-BASIC Instructions
Instructions are used to make programs. There are three different instructions. (a) Command (b) Statement (c) Functions
Computer Program
A group of serially numbered statements are called a computer program.
COMMANDS
Commands are generally executable instructions in the Direct Mode or at command level and can work without line numbers.
COMMANDS:
LIST (F1) RUN (F2) LOAD (F3) SAVE (F4) CONT (F5) LPT1 (F6) TRON (F7) TROFF(F8) KEY (F9) SCREEN(F10) AUTO (Alt + A) CLEAR DELETE NEW FILES KILL RENUM EDIT BREAK(Ctrl + C) SYSTEM
STATEMENTS
(a) A Statements is a group of BASIC keywords(Reserved words). (b) Statement always preceded by line number. (c) When the program RUN, statements are executed. (d) Statements work in Indirect Mode or Programming Mode.
STATEMENTS:
CLS PRINT(?) END REM INPUT LET GOTO IF - THEN - ELSE LOCATE FOR - NEXT DIM READ....DATA ON GOTO ON ERROR GOTO
Commands and Statements
Subscribe to:
Posts (Atom)