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

2 comments:

Unknown said...

Q11. Write a program Volume of Cyclinder in Visual basic ?

Unknown said...

De program of volume of a cylinder in visual basic