Sunday, December 2

BASIC Commands and Statements

What are commands ?
Commands are executable instructions which perform some type of program maintenance such as editing, loading or saving programs. 

  • A command is an instruction which specifies an operation to be performed.
  • Commands are generally executed in the direct mode ( Commands level of the interpreter)
  • Commands are written without line numbers.
  • Commands are given by using certain BASIC Reserved words.
  • When BASIC is invoked and BASIC prompt, OK appears, the system assumes command level to accept your command statement or programs.
What are the statements ?
A statement is a group of BASIC keywords generally used in program lines as part of a program.

  • Every statement must start with a line number.
  • Statements are user defined operation sequences.
  • When the program is run, statements are executed when, and as they appear.
Getting Started with GWBASIC
1. Boot your computer to get Dos prompt (E.g. C:\> for Hard disk).
2. Change to the Directory having GWBASIC files (i.e. GWBASIC.EXE).
3. Type GWBASIC and press enter key.
4. Now you can see the GWBASIC Screen.

CS 1.3 Display on the screen for GWBASIC
GW-BASIC 3.23
(C) Copyright Microsoft 1983, 1984, 1985, 1986, 1987, 1988
60300 Bytes free
Ok


    

No comments:

Post a Comment