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

Animation and transition effects will distract your audience when using a slide show presentation aid. True or False?
What are boomtowns and why did they become ghosttowns??
What does creon value? a. gods b. family c. power d. others?
wat is 1.5 kilograms in grams
Genetically-Modified Organisms (GMOs) are currently being developed for agriculture. Currently commercialized GM crops in the U.S. include soy (94%), cotton (90
Carbon tetrachloride (ccl4) may be produced when reacting excess chlorine with methane in the presence of light.truefalse
A magnetic field is created by a charged particle that is ___
Just divide the top of the fraction by the bottom
What is considered offense when a game is being played? attacking the opponent's goal kicking the ball out of bounds defending or protecting your goal stealing
A vet treats dogs (D), cats (C), birds (B), hamsters (H), and reptiles (R). A veterinary assistant randomly selects a patient’s file. What is the sample space f