You are on page 1of 5

Private Sub Command1_Click() Dim a As Integer a = Val(Text1.Text) Text4.Text = a ^ 2 Text5.

Text = a * 4 End Sub

Private Sub Command10_Click() Dim d As Integer d = Val(Text6.Text) Text11.Text = 4 * 3.14 * (d ^ 2) Text12.Text = 1.33 * 3.14 * (d ^ 2) End Sub

Private Sub Command11_Click() Dim d, f As Integer d = Val(Text6.Text) f = Val(Text8.Text) Text13.Text = 2 * 3.14 * d Text9.Text = 3.14 * (d ^ 2) Text10.Text = (0.5 * Text13.Text) * f Text11.Text = (3.14 * d * f) + (3.14 * (d ^ 2)) Text12.Text = (0.33 * Text9.Text) * f End Sub

Private Sub Command2_Click() Dim a, b As Integer

a = Val(Text1.Text) b = Val(Text2.Text) Text4.Text = a * b Text5.Text = 2 * (a + b) End Sub

Private Sub Command3_Click() Dim a, b, c As Integer a = Val(Text1.Text) b = Val(Text2.Text) c = Val(Text3.Text) Text4.Text = (a * b) / 2 Text5.Text = a + b + c End Sub

Private Sub Command4_Click() Dim a, b As Integer a = Val(Text1.Text) b = Val(Text2.Text) Text4.Text = a * b Text5.Text = 2 * (a + b) End Sub

Private Sub Command5_Click() Dim a As Integer a = Val(Text1.Text) Text4.Text = a ^ 2 * 3.14 Text5.Text = a * 2 * 3.14

End Sub

Private Sub Command6_Click() Dim d As Integer d = Val(Text6.Text) Text9.Text = d ^ 2 Text13.Text = 4 * d Text10.Text = Text13.Text * d Text11.Text = 6 * d ^ 2 Text12.Text = d ^ 3 End Sub

Private Sub Command7_Click() Dim d, e, f As Integer d = Val(Text6.Text) e = Val(Text7.Text) f = Val(Text8.Text) Text13.Text = 2 * (d + e) Text9.Text = d * e Text10.Text = Text13.Text * f Text11.Text = Text10.Text + 2 * (d * e) Text12.Text = Text9.Text * f End Sub

Private Sub Command8_Click() Dim d, e, f, g As Integer d = Val(Text6.Text) e = Val(Text7.Text)

f = Val(Text8.Text) g = Val(Text14.Text) Text13.Text = d + e + g Text9.Text = (e * f) / 2 Text10.Text = Text13.Text * f Text11.Text = Text10.Text + (e * f) Text12.Text = Text9.Text * f End Sub

Private Sub Command9_Click() Dim d, f As Integer d = Val(Text6.Text) f = Val(Text8.Text) Text13.Text = 2 * 3.14 * d Text9.Text = 3.14 * (d ^ 2) Text10.Text = Text13.Text * f Text11.Text = Text10.Text + (2 * Text9.Text) Text12.Text = Text9.Text * f End Sub

You might also like