Professional Documents
Culture Documents
Ciclos
Investigacion Previa
-
Ejercicios
1. Crea una interfaz que te permita mostrar la tabla de multiplicar que el usuario
indique.
2. Genera un programa como el siguiente
Dim incremento, fin, x As Integer
incremento = TextBox1.Text
fin = TextBox2.Text
For x = 0 To fin Step incremento
ListBox1.Items.Add(x)
Next
Ejercicios:
Pantalla:
Pantalla:
Pantalla:
Pantalla:
Codigo:
Dim a As Integer
a = TextBox1.Text
If a = 1 Then
MsgBox("Tu compraste cemento paga $350")
ElseIf a = 2 Then
MsgBox("Tu compraste andamios paga $1350")
ElseIf a = 3 Then
MsgBox("Tu compraste madera paga $800")
ElseIf a = 4 Then
MsgBox("Tu compraste tabique paga $1000")
ElseIf a = 5 Then
MsgBox("Tu compraste yeso paga $550")
Else
MsgBox("OPCION INVALIDA")
End If
Pantalla: