How to find the volume of a cube in programming

zMiiGHTz

Distinguished
Sep 5, 2011
1
0
18,510
i need to adapt this program to find the volume of a cube

Dim Radius As Integer = 5
Dim Area As Double
Const Pi As Double = 3.14159265
Area = Pi * (Radius^2)
MsgBox(Area)
 
volume of cube: even easier to find than the other code. If a circle has radius, a box has what in relation? Then put that to the 3rd power. I sure hope you are not going into engineering and we have to drive over bridges you designed.