Professional Documents
Culture Documents
'RESULTADOS
TextS.Text = S
TextMAYOR.Text = MAYOR
TextMENOR.Text = MENOR
'ORDENA NUMERO DE MENOR A MAYOR
LI = LBound(n, 1)
LS = UBound(n, 1)
For i = LI To LS - 1
For j = LI To LS - 1
If n(j) > n(j + 1) Then
tmp = n(j)
n(j) = n(j + 1)
n(j + 1) = tmp
End If
Next
Next
Text01.Text = n(1)
Text02.Text = n(2)
Text03.Text = n(3)
Text04.Text = n(4)
Text05.Text = n(5)
End Sub
End Sub