write a program that Accept two numbers and display its product in qbasic
Answers
Answered by
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
1
Answer:
CLS
PRINT "ENTER 2 NUMBERS"
INPUT A
INPUT B
PRINT "PRODUCT:";(A*B)
END
Similar questions
Geography,
1 month ago
Biology,
1 month ago
Math,
4 months ago
World Languages,
10 months ago
Science,
10 months ago