top of page

April

Q​-Basic



We need to tell to the computer:

1. The initial value
2. when to start the loop
       3.   what to do
       4.   Execute an operation (+ - * /)
5. Compare the result to the target set (when situation changes)
6. 6. GOTO the beginning or to the end.

Reflection Activity​

 

  • Mention 2 Types of loops used in QBASIC..





























IF, THEN , ELSE, END IF Commands


They are used to compare an expression and then perform some task based on that expression.
Using the ELSE Command you can have the program perform a different action if the statement is END IF allows you to have multiple commands after the  IF… THEN:

Reflection Activity

 

  • What is the purpose of the commands IF, THEN, ELSE, END IF?.











 

bottom of page