How to find the volume of a cube in programming

zMiiGHTz

Distinguished
Sep 5, 2011
1
0
18,510
0
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)
 

hang-the-9

Titan
Moderator
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.
 
Thread starter Similar threads Forum Replies Date
H Apps General Discussion 3
A Apps General Discussion 6
S Apps General Discussion 1
anoori9000 Apps General Discussion 1
V Apps General Discussion 1
K Apps General Discussion 3
R Apps General Discussion 1
O Apps General Discussion 5
J Apps General Discussion 2
Maksiss3 Apps General Discussion 5
K Apps General Discussion 2
P Apps General Discussion 7
A Apps General Discussion 2
birne Apps General Discussion 24
VedranMik Apps General Discussion 1
B Apps General Discussion 4
R Apps General Discussion 4
F Apps General Discussion 3
hk3008 Apps General Discussion 4
P Apps General Discussion 6

ASK THE COMMUNITY