Computer Studies
Display the output of the following QBASIC program:
CLS
P = 2
Q = 1
START:
PRINT P*Q
Q = Q + 1
IF Q <=10 THEN GOTO START:
END
QBASIC
QBASIC: Conditional Statements
9 Likes
Answer
The output of the program is shown below:
2
4
6
8
10
12
14
16
18
20
Answered By
3 Likes
Related Questions
Correct the mistakes in the following flowchart and write the program. The given flowchart is to accept one positive and one negative number. It also checks whether the sum is a positive number or a negative number.
Display the output of the following QBASIC program:
CLS
P = 5
START:
PRINT P
P = P + 5
IF P <= 50 THEN GOTO START:
ENDDisplay the output of the following QBASIC program:
CLS
A = 5
B = 10
START:
C = A + B
PRINT C
A = A + 1
IF A <=10 THEN GOTO START:
ENDDisplay the output of the following QBASIC program:
CLS
C = 3
D = C*2
START:
PRINT C,D
C = C + 2
IF C <=10 THEN GOTO START:
END