Computer Science, asked by ishaan2224, 2 months ago

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 monika3281
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


ishaan2224: thanks
Similar questions