Computer Science, asked by sumonaghosh222, 22 days ago

write a program in QBASIC to take two numbers as input from the user and print their product​

Answers

Answered by ganeshprasadv5
3

Answer:

CLS

INPUT A

INPUT B

PRINT A+B                                      (TO PRINT SUM)

IF A>B                                               (TO CHECK WHICH NO. IS GREATER)

THEN PRINT A-B                            (TO PRINT DIFFERENCE)

ELSE

PRINT B-A                                       (TO PRINT DIFFERENCE)

PRINT A*B                                         (TO PRINT PRODUCT)

END

IF THERE ARE ANY ERROR THEN KINDLY CORRECT IT.

I HOPE U WILL FIND THIS PROGRAM HELPFUL

Similar questions