QBASIC Programming


This page contains info on how to write programs in QBASIC, and some programs for download.


To clear the screen use CLS which stands for CLear Screen.

To get input from a user you might try using:  INPUT "Enter Name ==> ", Name$

or INPUT "Enter Your Age ==> ", Age

Use strings (ex. Name$) when you are getting input that may contain any character that is not a number.

You should always end your program with an END statement.

To get the ASCII code for the first character of a string use:  ASC(Name$)

To get the ArcTaNgent of a number use:  ATN(Number)

To make the computer beep use:  BEEP

To call a sub you use CALL Sub


Programs written in QBASIC:

Program Description
Screen Test Goes through every possible screen color combination.
Virus A program that you put on a disk and use to play a joke on someone.  (Relax it's not really a virus.)
ASCII Show the ASCII character code.
 

Source for some programs I have written in QBASIC:

Program Description
Chemistry A Chemistry Program that I wrote during my sophomore year of high school.
Screen Test Goes through every possible screen color combination.
Virus A program that you put on a disk and use to play a joke on someone.  (Relax it's not really a virus.)
ASCII Shows the ASCII character code.

Page Last Updated
December 05, 2004