Computer Science, asked by yeshamehta8108, 4 months ago

write a program that Accept two numbers and display its product in qbasic

Answers

Answered by anindyaadhikari13
2

Answer:

The given program is written in QBASIC.

CLS

INPUT "Enter first number: "; A

INPUT "Enter second number: "; B

P = A * B

PRINT "Product is: "; P

END

Explanation:

  • Line 1: Clears the screen.
  • Line 2: Takes the first number as input.
  • Line 3: Takes the second number as input.
  • Line 4: Find the product of the numbers.
  • Line 5: Display the product.
  • Line 6: End of program.

Refer to the attachment for output.

•••♪

Attachments:
Answered by BrainlyProgrammer
1

Answer:

CLS

PRINT "ENTER 2 NUMBERS"

INPUT A

INPUT B

PRINT "PRODUCT:";(A*B)

END

Similar questions