2.Write a Qbasic Program for addition two 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, the result will be as follows -
Answered by
0
CLS
INPUT "ENTER A NUMBER"; N1
INPUT "ENTER SECOND NUMBER: ",N2
SUM = N1+N2
PRINT "SUM = ";SUM
END
Similar questions
Geography,
2 months ago
Science,
2 months ago
Science,
4 months ago
Computer Science,
4 months ago
Social Sciences,
10 months ago
Math,
10 months ago