Beginner's Programming Tutorial in QBasic

(Kiana) #1

(The figure below displays the "output screen." )


QBasic interpreter - output screen

If you run the program again, the interpreter adds another Hello World. QBasic adds Hello
World each time the program is run.


Deleting the program


To erase the current program:



  1. Go to the "File" menu.

  2. Click "New."

  3. The interpreter asks if you want to save the program.

  4. Select "No" (or if you'd rather keep the program, select "Yes").


Strings


There are certain types of data (or information) called "strings." Strings contain a sequence of
characters (letters, numbers, and symbols) enclosed in quotation marks. For example, "Hello
World!" is a string.

Free download pdf