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

Who created this work of art? A. Pierre-Aguste Renoir B. Pablo Picasso C. Wassily Kandinsky D. Vincent van Gogh Answer: D. Crows over Wheatfield by Vincent van
Which event was the most important in turning the tide of the war in the Pacific against the Japanese? Why?
I have to do a project about Fredrick Douglass . But I need help on why Fredrick Douglass became an abolitionist ?
Cytosine is which DNA based paired and bond to cytosine?
what is the advantage of investing income before taxes
Solve the equation. Show your work. 1/a =6/18
What is the surface area of this prism? A. 120 cm2 B. 122 cm2 C. 240 cm2 D. 184 cm2
Your tongue has about 3,000 taste buds. True False
The climate and weather in the South have contributed to the development of _____________.
The price of a plane ticket has increased from $150 to $200. By what percent has the price increased? A) 15% B) 25% C) 33% D) 50%