Professional Documents
Culture Documents
Dim V As Double
Dim a As Double
Dim t As Double
Dim e As Double
If
V = Val(Txtvelocidadinicial.Text)
a = Val(TxtAceleracion.Text)
t = Val(TxtTiempo.Text)
e = V * t + a * (t ^ 2) / 2
TxtEspacio.Text = e
End Sub
TxtEspacio.Focus()
End Sub
End Sub
End Class
If
V = Val(Txtvelocidadinicial.Text)
a = Val(TxtAceleracion.Text)
t = Val(TxtTiempo.Text)
e = V * t + a * (t ^ 2) / 2
TxtEspacio.Text = e
End Sub
TxtEspacio.Focus()
End Sub
End Sub
End Class