chessygirls7
chessygirls7 chessygirls7
  • 15-04-2021
  • Computers and Technology
contestada

write a program. in QBAsSIC
a to find product of two numbers
b to calculate sum of two numbers
c to calculate difference between two numbers
computer q qubasic can anybody help me plz​

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 20-04-2021

Answer:

The program is as follows:

5 INPUT A,B

6 PROD = A * B

7 PRINT PROD

8 TOTAL = A + B

9 PRINT TOTAL

10 DIFF = A - B

11 PRINT DIFF

12 END

Explanation:

This gets input for the two numbers

5 INPUT A,B

This calculates the product

6 PROD = A * B

This prints the calculated product

7 PRINT PROD

This calculates the sum

8 TOTAL = A + B

This prints the calculated sum

9 PRINT TOTAL

This calculates the difference

10 DIFF = A - B

This prints the calculated difference

11 PRINT DIFF

This ends the program

12 END

Answer Link

Otras preguntas

fort knox holds 147,300,000 onces of gold. write the number that is one million more
I need help with world history can anybody answer this question? Which of the following choices gives an absolute location? a. northwest of the city limits b.
Explain why or why not 12.702 is a reasonable value for the expression 5.8 ×2.19
what are two acent democracy that helped form amica today
why is energy important to living things?
what is 59424.77 rounded to the nearest square mile
Which statements describe factors that led to the decline and defeat of the Aztec Empire? Choose all answers that are correct. A. The Aztecs had never seen stee
117,821 round to the nearest ten thousand
fort knox holds 147,300,000 onces of gold. write the number that is one million more
if you earn one penny every 10 seconds of your life ,how many dollars would you have after 65 years?