Q6. Write a program in QBASIC to add numbers.
Answers
Answered by
1
Answer:
let the two numbers be 43 and 57.
so the program for adding these numbers in QBASIC is as follows -
CLS.
A = 43.
B = 57.
PRINT "The sum of" A "and" B "is" A + B.
END.
when you will execute this program
Explanation:
Answered by
2
CLS
INPUT "ENTER A NUMBER"; N1
INPUT "ENTER SECOND NUMBER: ",N2
SUM = N1+N2
PRINT "SUM = ";SUM
END
Similar questions
Math,
4 months ago
Math,
4 months ago
Science,
4 months ago
Physics,
8 months ago
Math,
8 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago