WAP in QBasic to input two numbers & find their sum, subtraction, multiplication & Average.
Answers
Answered by
3
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
Answered by
4
Answer:REM "Program to input two numbers and find their Sum, Subtraction, Multiplication and Average"CLS PRINT ..
Similar questions