Microsoft QuickBASIC Beginner's Tutorial - Lesson 1: The Basics
You will start with the famous "Hello World" program. In QuickBASIC, it is quite easy to do. In QuickBASIC (I'm going to start calling it QBasic from now on) enter in this code:
CLS PRINT "Hello World!" END
(NOTE: if the program is running in a window, press Alt + Enter. To switch between this program and the web browser, press Alt + Tab. This can also be used for switching between any programs)
Now, to run the program, press Shift + F5.
You should see a screen similar to this:
Now let's dissect the three lines of the program:
CLS - Clears the screen of any previous program output
PRINT "Hello World!" - Prints (to the screen) the text "Hello World!". We will be using this a lot and for different reasons. To make it a little easier to make a QBasic program, the designers allowed you to type a ? and it will automatically change to a PRINT statement.
END - Ends the program
Now try to make other programs that use the PRINT statement.