You are on page 1of 3

BENITEZ HERNANDEZ OSCAR URIEL_TAREA

Dim i, x, n, ing, ven, net As Integer


n = InputBox("Ingrese el numero de vendedores")
ven = 0

For i = 1 To n
ing = InputBox("Ingrese las ventas netas de cada vendedor")
ven = ven + (ing * 9 / 100) + 200

For x = 1 To n
net = ing + ing + ven
Next
MsgBox(net & " ingresos ")
Next

End Sub
End Class

Dim pal, n, i As String

pal = UCase(TextBox1.Text)

For x = 1 To 1
n = Len(pal)
i = Mid(TextBox1.Text, 1, n)

If pal = Chr(65) Then


TextBox2.Text = TextBox2.Text & ".-"
ElseIf pal = Chr(66) Then
TextBox2.Text = TextBox2.Text & "-.."
ElseIf pal = Chr(67) Then
TextBox2.Text = TextBox2.Text & "-.-."
ElseIf pal = Chr(68) Then
TextBox2.Text = TextBox2.Text & "-.."
ElseIf pal = Chr(69) Then
TextBox2.Text = TextBox2.Text & "."
ElseIf pal = Chr(70) Then
TextBox2.Text = TextBox2.Text & "..-."
ElseIf pal = Chr(71) Then
TextBox2.Text = TextBox2.Text & "--."
ElseIf pal = Chr(72) Then
TextBox2.Text = TextBox2.Text & ",,,."
ElseIf pal = Chr(73) Then
TextBox2.Text = TextBox2.Text & ".."
ElseIf pal = Chr(74) Then
TextBox2.Text = TextBox2.Text & ".---"
ElseIf pal = Chr(75) Then
TextBox2.Text = TextBox2.Text & "-.-"
ElseIf pal = Chr(76) Then
TextBox2.Text = TextBox2.Text & ".-.."
ElseIf pal = Chr(77) Then
TextBox2.Text = TextBox2.Text & "--"
ElseIf pal = Chr(78) Then
TextBox2.Text = TextBox2.Text & "-."
ElseIf pal = Chr(79) Then
TextBox2.Text = TextBox2.Text & "---"
ElseIf pal = Chr(80) Then
TextBox2.Text = TextBox2.Text & ".--."
ElseIf pal = Chr(81) Then
TextBox2.Text = TextBox2.Text & "--.-"
ElseIf pal = Chr(82) Then
TextBox2.Text = TextBox2.Text & ".-."
ElseIf pal = Chr(83) Then
TextBox2.Text = TextBox2.Text & ",,,"
ElseIf pal = Chr(84) Then
TextBox2.Text = TextBox2.Text & "-"
ElseIf pal = Chr(85) Then
TextBox2.Text = TextBox2.Text & "..-"
ElseIf pal = Chr(86) Then
TextBox2.Text = TextBox2.Text & "...-"
ElseIf pal = Chr(87) Then
TextBox2.Text = TextBox2.Text & ".--"
ElseIf pal = Chr(88) Then
TextBox2.Text = TextBox2.Text & "-..-"
ElseIf pal = Chr(89) Then
TextBox2.Text = TextBox2.Text & "-.--"
ElseIf pal = Chr(90) Then
TextBox2.Text = TextBox2.Text & "--.."

End If

If pal = Chr(49) Then


TextBox2.Text = TextBox2.Text & ".----"
ElseIf pal = Chr(50) Then
TextBox2.Text = TextBox2.Text & "..---"
ElseIf pal = Chr(51) Then
TextBox2.Text = TextBox2.Text & "...--"
ElseIf pal = Chr(52) Then
TextBox2.Text = TextBox2.Text & "....-"
ElseIf pal = Chr(53) Then
TextBox2.Text = TextBox2.Text & "....."
ElseIf pal = Chr(54) Then
TextBox2.Text = TextBox2.Text & "-...."
ElseIf pal = Chr(55) Then
TextBox2.Text = TextBox2.Text & "--..."
ElseIf pal = Chr(56) Then
TextBox2.Text = TextBox2.Text & "---.."
ElseIf pal = Chr(57) Then
TextBox2.Text = TextBox2.Text & "----."
ElseIf pal = Chr(48) Then
TextBox2.Text = TextBox2.Text & "-----"

End If

Next

End Sub
End Class

Dim n1, n2, x As Integer

n1 = InputBox("Ingrese un primer numero entero")


n2 = InputBox("Ingrese un segundo numero entero")

For x = 1 To n1
If n1 > n2 Then
n2 = n1
ElseIf n2 < n1 Then
n1 = n2
End If
Next
TextBox1.Text = TextBox1.Text & "El numero mayor es : " & n2 & vbNewLine & "El numero menor
es: " & n1

'x = x + 1
End Sub
End Class

Dim n, m, x, i, div As Integer


n = Val(InputBox("Ingrese un primer numero"))
m = Val(InputBox("Ingrese un segundo numero"))

For x = n To m
If x Mod 2 <> 0 Then
div = x
Else

If x Mod x = 0 Then
Continue For
End If
End If
TextBox2.Text = TextBox2.Text & div

Next

End Sub
End Class

You might also like