Computer Science, asked by vijayatatiwari, 6 months ago

write a program in QBASIC for following Accept two numbers and display sum ​

Answers

Answered by arik20100906
0

< < \geqslant \geqslant .13 {2yx((2212}^{2}

Answered by anindyaadhikari13
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:

  1. START
  2. Accept two numbers, say A and B
  3. Add A and B and store in a variable, say S.
  4. Display the value of S.
  5. STOP.

Refer to the attachment.

Attachments:
Similar questions