Bucle anidado for
Ejemplos de bucles anidados con FOR en Visual Basic.net 2010
Dim i, j As Integer
Console.Title = "Bucle Anidado"
Console.ForegroundColor = ConsoleColor.Yellow
For i = 10 To 1 Step -1
For j = 1 To i
Console.Write("*")
Next j
Console.WriteLine()
Next i
Console.ReadKey()
-------------------------------------------------------------------------------------
Dim i, j As Integer
Console.Title = "Bucle Anidado"
Console.ForegroundColor = ConsoleColor.Yellow
For i = 10 To 1 Step -1
For j = 1 To i
Console.Write("*")
Next j
Console.WriteLine()
Next i
Console.ReadKey()
-------------------------------------------------------------------------------------
Comentarios