CHAPTER EIGHT

PROGRAMMING LANGUAGE

Step 3

Press F5 or run. The window below will appear on your desk top. Note that the first output "WELLCOME TO JALINGO NATURES GIFT TO THE NATION" is removed from the screen.

 

Let's see what happens if we did not put CLS before PRINT of "COLLEGE OF EDUCATION JALINGO TARABA STATE NIGERIA"


The above contained the output of the first and second commands because we did not include CLS- Clear screen before the Print command of the second code.

8.4.2. THE END command

END command is used for ending the program.

8.4.3. INPUT Command.

To use the input command you need to type 2 things...
1. INPUT
2. The Name of the input (Handle), called an ARRAY.... An array can handle Numbers or words.

Step 1

Open Qbasic window

Step 2

Type the commands as in the picture below

Click to page56 Page57 Click to page 58
Copyright2016@Digital Vision Jalingo. Nigeria
www.digitalvision.net.ng