Getting Started
2-28
It is conventional to use an interval of 10
between each line number. This allows you to
modify the program simply by inserting
statements between existing lines.
The above statements form a complete program
that solves a very simple problem. The
problem is to find the area of a rectangle by
entering the values of length and width via
the keyboard. It has been selected both for its
simplicity and to illustrate a variety of
GWEASIC features. Other more concise solu-
tions exist.
AUTOMATIC LINE NUMBERING
You can use the AUTa command (see the
Reference Section), to generate a line number
automatically each time you press CR by
pressing CTRL BREAK.