Computer Science, asked by anshu9855, 1 year ago

Draw a flowchart and write a program in Q Basic to enter two numbers subtract the second number from the first if the first number is greater than the second number or vice versa​

Answers

Answered by shreedharshreedharan
3

REM TO SUBTRACT TWO NUMBERS

CLS

INPUT "ENTER TWO NUMBERS A, B": A, B

IF A >B THEN

C=A-B ;

PRINT C"

ELSE

C=B-A

PRINT C;

END IF

Explanation:

This is a PROGRAM TO FIND THE GREATEST OF 2NUMBERS AND SUBTRACT FROM THE BIGGEST.

Similar questions