Sunday, January 22, 2012

Structure of a GW-BASIC Program:

                Every GW-BASIC program should have the following rules:
1.            Every program statement must begin with line number.
2.            Every program should end with an END statement.
3.            There should be no repetition of lines.
4.            Every statement should be separated by ( : ) colon.
5.            In BASIC variables can be used without declaration.
6.            Ascending order of line numbers does not matter such as line number 60 can appear before line number 40, but program statements will always execute according to the ascending order of specified line numbers.