Write a program to input 2 numbers and print their sum and difference
Answers
Answered by
2
Explanation:
REM PROGRAM TO DISPLAY SUM, DIFFERENCE, PRODUCT AND AVERAGE OF TWO NUMBERS. INPUT “ENTER FIRST NUMBER”; A. ...
DECLARE SUB SUM (A, B) DECLARE SUB DIFF (A, B) ...
SUB SUM (A, B) S = A + B. ...
SUB AVERAGE (A, B) AV = (A + B) / 2. ...
DECLARE FUNCTION SUM (A, B) ...
FUNCTION SUM (A, B) ...
FUNCTION DIFF (A, B) ...
FUNCTION PROD (A, B)
Answered by
1
Answer:
the above one is the right answer of your question
Similar questions