write a program in QBASIC for following Accept two numbers and display sum
Answers
Answered by
0
< < \geqslant \geqslant .13 {2yx((2212}^{2}
Answered by
3
Required Answer:-
Question:
- Write a program in QBASIC to accept two numbers and display their sum.
Solution:
Here comes the program.
10 CLS
20 INPUT "Enter The First Number: "; A
30 INPUT "Enter The Second Number: "; B
40 LET S = A + B
50 PRINT "The sum of given two numbers is: "
60 PRINT S
70 END
Algorithm:
- START
- Accept two numbers, say A and B
- Add A and B and store in a variable, say S.
- Display the value of S.
- STOP.
Refer to the attachment.
Attachments:
![](https://hi-static.z-dn.net/files/d2f/1262a2047f6f1f234a875da11776aab3.jpg)
Similar questions