Realizar una aplicación que genere los cinco números de la loto (esto es cinco números aleatorios entre 1 y 99 no repetidos) C Límite inferior Límite superior N1<>N2N2<>N3 N4<>N5 N3<>N4 N1 N2 N3 N4 N5 N1 N2 N3 N4 N5 F
Private Sub CommandButton1_Click() Dim LimiteInferior As Integer Dim LimiteSuperior As Integer LimiteInferior = 1 LimiteSuperior = 99 n1 = Int((LimiteSuperior - LimiteInferior + 1) * Rnd + LimiteInferior) n2 = Int((LimiteSuperior - LimiteInferior + 1) * Rnd + LimiteInferior) n3 = Int((LimiteSuperior - LimiteInferior + 1) * Rnd + LimiteInferior) n4 = Int((LimiteSuperior - LimiteInferior + 1) * Rnd + LimiteInferior) n5 = Int((LimiteSuperior - LimiteInferior + 1) * Rnd + LimiteInferior) If n1 <> n2 And n2 <> n3 And n3 <> n4 And n4 <> n5 Then MsgBox (n1) MsgBox (n2) MsgBox (n3) MsgBox (n4) MsgBox (n5) Else MsgBox ("alguno de los numeros está fuera de rumbo") End If End Sub
Realizar una aplicación que solicite nombre de usuario y contraseña.