Computer Science, asked by mmanish305, 4 months ago

write a program in Q Basic to take two numbers as input from the user and print their difference

Answers

Answered by jahanvisharma2910200
1

QBasic Programming

  1. REM PROGRAM TO DISPLAY SUM, DIFFERENCE, PRODUCT AND AVERAGE OF TWO NUMBERS. CLS. INPUT “ENTER FIRST NUMBER”; A. ...
  2. DECLARE SUB SUM (A, B) DECLARE SUB DIFF (A, B) DECLARE SUB PROD (A, B) ...
  3. SUB SUM (A, B) S = A + B. PRINT “SUM OF TWO NUMBERS”; S. ...
  4. DECLARE FUNCTION SUM (A, B) DECLARE FUNCTION DIFF (A, B)
Similar questions