dipshadevkota9
dipshadevkota9 dipshadevkota9
  • 04-02-2021
  • Computers and Technology
contestada

how to find the volume of cube in computer in QBASIC program ​

Respuesta :

abhigyathapa12321 abhigyathapa12321
  • 04-02-2021

Answer:

QBasic Programming

REM PROGRAM TO DISPLAY VOLUME OF CUBE. CLS. INPUT “ENTER LENGTH”; L. ...

USING SUB PROCEDURE.

DECLARE SUB VOLUME(L) CLS. INPUT “ENTER LENGTH”; L. ...

SUB VOLUME (L) V = L ^ 3. PRINT “VOLUME OF CUBE ”; V. ...

USING FUNCTION PROCEDURE.

DECLARE FUNCTION VOLUME (L) CLS. ...

FUNCTION VOLUME (L) VOLUME = L ^ 3.

Answer Link

Otras preguntas

Please help! I need to find the value of x. Thank you!
What is the x-intercept of the graph of 3x + 12 = -6
Topic: Causes of World War 2 Who: What: When: How was it important to world war 2: PLEASE I NEED ASAP!!!!!!!!!!!!!
Which of the following is not a mineral resource found in Central America? a. bauxite c. copper b. nickel d. gold
What is the value of cos H? round to four decimal places if needed? F 77 G 36 H 85
What are three ways the Legislative branch checks on the executive branch?
Apply the appropriate mathematical operation to solve this fulcrum problem. Weight 1 = 150 lb Weight 2 = 300 lb. d1 = 15 ft.
Which three lines from Edgar Allan Poe's "Annabel Lee" contain alliteration? A. The angels, not half so happy in Heaven, B. Chilling and killing my Annabel Lee
The articles “a,” “an,” and “the” are considered: a. Pronouns c. Adjectives b. Prepositions d. Adverbs
What is the value of matrix B if A+B=C?