Page 64 - 1
P. 64

Memory Bytes

  The QBasic File are saved with BAS as their file extension.

Saving the Program

To save the program follow the given steps:
Step 1: Click on the File menu option.

               A drop down list of options will
               appear.
Step 2: Click on Save or Save As.

Step 3:                                                        The Save dialog box will appear.
Step 4:                                                        Type the file name.
                                                               Click on OK.
                                                               The file name will appear on the

                                                                  title bar.

                                 Open QBASIC window and type the following command:
                                 PRINT “Hello everyone! How are you?.”
                                 Now save the program with your name.

  Executing A Program

   After typing program in QBasic editor, you have to execute it. The execution of program is
                  also called Run. To run execute a program press F5 key.

   For example: Program to add two number
   Step 1: Write the following in QBasic editor.

                  CLS
                  INPUT NUM1, NUM2
                  LET SUM = SUM1 + NUM2
                  PRINTS SUM

64
   59   60   61   62   63   64   65   66   67   68   69