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

Solve: K= 2(11 - k) + 14
A particle is moving along the x-axis so that its position at any time t is greater than and equal to 0 is given by x(t)=2te^-t?A) Find v(t). B) Find a(t).C) At
if log28 = log4 +logx what is the value of x
Why is carbon unique among the elements?????
Which measurement is not equal to 3 m 30 dm or 300 cm or 3000 mm or 3000 cm
On a desk there are 6 sheets of blue paper, 4 sheets of yellow paper, 5 sheets of green paper, and 2 sheets of pink paper. In how many ways can the paper be sta
How many seconds in 2.6 days
You work at a fruit market. Bananas cost 50¢ a pound. A customer hands you a bunch of bananas that weighs 3 pounds. How much should you charge for the bunch o
Douglas wants to draw a circle graph showing the favorite colors of his friends. When he polled his friends asking each their favorite color, 25% of his friends
Evaporation: Large amounts of water evaporates from the Earth's ________, _______, __________ every day. The water vapor (evaporation) becomes part of the _____