Thursday, September 25, 2008
Volume of a Cylinder - Sample Visual Basic Program
This program compute the volume of cylinder
Private Sub Command1_Click()
radius = " "
hght = " "
volume = " "
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub OK_Click()
r = Val(radius.Text)
h = Val(hght.Text)
pi = 22 / 7
v = pi * (r ^ 2) * h
volume.Text = Str$(v)
End Sub
Private Sub radius_Change()
End Sub
Subscribe to:
Post Comments (Atom)
2 comments:
Q11. Write a program Volume of Cyclinder in Visual basic ?
De program of volume of a cylinder in visual basic
Post a Comment