User Forum

Subject :ICSO    Class : Class 6

Rohit has typed the following program to compute the average of two numbers in QBASIC, but the program is producing the INCORRECT result. Which of the following statements need to be changed to obtain the desired output?
LINE 1 LET X = 5
LINE 2 LET Y = 10
LINE 3 SUM = X + Y
LINE 4 AVG = SUM MOD 2
LINE 5 PRINT "Average is", AVG

ALINE 1
BLINE 3
CLINE 4
DLINE 5


Post Your Answer