Code:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim volume As Decimal Dim radius As Decimal radius = CDbl(TextBox1.Text) volume = (4 / 3) * 3.14 * (radius * radius * radius) Label1.Text = volume End Sub
Leave a comment: