Const phi As Double = 3.14
Dim volumetabung As Double
Private Sub cmdhitung_Click()
luasalas = phi * (txtjarijari.Text * txtjarijari.Text)
volumetabung = luasalas * txttinggi.Text
txtvolume.Text = volumetabung
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Post a Comment