You are on page 1of 1

Private Sub CommandButton1_Click()

Dim A, D, L, V As Double

D = CDbl(T1.Text)

L = CDbl(T2.Text)

A = 3.1416 * D * (L + (0.5 * D))


V = 0.7854 * (D) ^ 2 * L

MsgBox ("area de un cilindro (m2)=" & A)

MsgBox ("volumen de un cilindro (m3)=" & V)

You might also like