Академический Документы
Профессиональный Документы
Культура Документы
NET
Arrays Unidimensionales y Bidimensionales
Shagali Huanca V.
ARREGLOS UNIDIMENSIONALES
Para acceder a cada elemento del arreglo se utiliza un ndice que identifica
la posicin de dicho elemento. El primer elemento se identifica con el ndice
0, el segundo elemento con el ndice 1 y as sucesivamente.
0 1 2 3 4 5
PARES (5) 40 28 4 16 32 12
En Visual Basic .NET : Dim Pares(5) As Integer
ARREGLOS UNIDIMENSIONALES
For i=0 to 5
Pares( i ) = InputBox(Digite numero par : )
Next
0 1 2 3 4 5
PARES (5) 40 28 4 16 32 12
ARREGLOS UNIDIMENSIONALES
PARES (5) 40 28 4 16 32 12
ARREGLOS MULTIDIMENSIONALES
0 1 2
0
1
FILAS
2
3
ARREGLOS MULTIDIMENSIONALES
0 Cesar Lunes
1 David Martes
2 Felipe Mircoles
3 Carlos Jueves
ARREGLOS MULTIDIMENSIONALES
0 Cesar Lunes
1 David Martes
2 Felipe Mircoles
3 Carlos Jueves
ARREGLOS MULTIDIMENSIONALES
Dim matriz(,) As Integer = {{1, 2, 3, 4}, {5, 6, 7, 8}} Inicializacion del arreglo bidimensional
For i = 0 To 1
For j = 0 To 3
Next
Next
End Sub
End Class