Sie sind auf Seite 1von 1

Sub picas_fijas()

Dim a, b, c, d, num1, num2, num3, num4 As Integer


a = Int(-9 * Rnd + 9)
b = Int(-9 * Rnd + 9)
c = Int(-9 * Rnd + 9)
d = Int(-9 * Rnd + 9)

If (a <> b Or c <> d Or c <> a Or c <> b Or d <> a) Then

While (a <> num1 And b <> num2 And c <> num3 And d <> num4)

Val = (InputBox("ingrese su primer numero", num1))


Val = (InputBox("ingrese su primer numero", num2))
Val = (InputBox("ingrese su primer numero", num3))
Val = (InputBox("ingrese su primer numero", num4))

MsgBox ("numero " & a)


MsgBox ("numero " & b)
MsgBox ("numero " & c)
MsgBox ("numero " & d)

End If

End Sub

Das könnte Ihnen auch gefallen