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
English,
5 months ago
Physics,
10 months ago
Math,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago