- Ingresar un numero entero y en pantalla mostrar el dígito mayor y el dígito menor.
Protected Sub btncalcular_Click(sender As Object, e As EventArgs) Handles btncalcular.Click
Dim num As String
num = txtnumero.Text
Dim max = (From D In num Select D).Max
Dim men = (From D In num Select D).Min
txtmayor.Text = max
txtmenor.Text = men
End Sub
End Class
que bueno info
ResponderEliminarGracias.
Eliminar