Write a program in QBASIC to input three numbers and check their sum and
product is equal or not. (no rem method)
Please help me
monika3281:
okk
Answers
Answered by
2
yes they are equal
1. Enter any two numbers and display its sum.
REM PROGRAM TO DISPLAY SUM OF TWO NUMBERS
CLS
INPUT “ENTER FIRST NUMBER”; A
INPUT “ENTER SECOND NUMBER”; B
S = A + B
PRINT “SUM OF TWO NUMBERS”; S
END
USING SUB PROCEDURE
DECLARE SUB SUM (A, B)
CLS
INPUT “ENTER FIRST NUMBER”; A
INPUT “ENTER SECOND NUMBER”; B
CALL SUM(A, B)
END
SUB SUM (A, B)
S = A + B
PRINT “SUM OF TWO NUMBERS”; S
END SUB
Similar questions
Geography,
3 months ago
Social Sciences,
3 months ago
Hindi,
6 months ago
Political Science,
6 months ago
Math,
1 year ago
History,
1 year ago
History,
1 year ago