Get Answers to all your Questions

header-bg qa

WAP in QBasic to input two numbers & find their sum, subtraction, multiplication & Average.?

Answers (1)

best_answer

CLS

PRINT  "Enter first number here"

INPUT  NUMBER1

PRINT  "Enter second number here"

INPUT  NUMBER2

SUM = NUMBER1 + NUMBER2

SUBTRACTION = NUMBER1 - NUMBER2

MULTIPLICATION = NUMBER1 * NUMBER2

AVERAGE = (NUMBER1 + NUMBER2) / 2

PRINT "The sum is:", SUM

PRINT "The subtracted product is:", SUBTRACTION

PRINT "The multiplied product is:", MULTIPLICATION

PRINT "The average  is:", AVERAGE

END

Posted by

Deependra Verma

View full answer