Press "Enter" to skip to content

MORE ON QBASIC

0

CONTROL STATEMENTS

you have already learnt about counters and Loops. In Qbasic , loops are made with the help of control statements.

Control statements are used to control the flow of the program according to your choice.These are very powerful tools for programmers.

Qbasic has many control statements . some are conditional, some are unconditional and some use counters.

Let,s learn them one by one.

The IF- THEN- ELSE- ENDIF Statement

you use conditional statements to take decisions. For example:

” If it rains,I will not play cricket , else I will play cricket.”

” If you get 80 .\. marks, your father will gift you a computer , else he will gift you only video grames.”

Similarly IF -THEN – ELSE – ENDIF statement are used to check the condition of a program. It is used in decision making process of a program.

COMPUTER ETHICS, CRIME, AND SECURITY
PROCESSING OF COMPUTER PROGRAMS

Leave a Reply

Your email address will not be published. Required fields are marked *