Computer Science, asked by sivak65, 9 months ago

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

Answers

Answered by Anonymous
11

ANSWER

Cls

Input " Enter any number" ;A

Input " Enter any number" ;B

Let Sum = A+B

Let Subtraction = A-B

Let Multiplication = A*B

Let Average =Sum/2

Print" The sum=" ;Sum

Print"The sub=" ;Subtraction

Print"The multiplication=" ;Multiplication

Print" The Average is " ;Average

End

mark me as brainliest

Answered by BrainlyYoda
0

Answer:

REM "Program to input two numbers and find their Sum, Subtraction, Multiplication and Average"

CLS

PRINT  "Enter first number"

INPUT  NUMBER1

PRINT  "Enter second number"

INPUT  NUMBER2

SUM = NUMBER1 + NUMBER2

SUBTRACTION = NUMBER1 - NUMBER2

MULTIPLICATION = NUMBER1 * NUMBER2

AVERAGE = (NUMBER1 + NUMBER2) / 2

PRINT "The sum is:", SUM

PRINT "The subtraction is:", SUBTRACTION

PRINT "The multiplication is:", MULTIPLICATION

PRINT "The average is:", AVERAGE

END

REM is used for adding remarks you can remove that while running QBasic Program

Similar questions