-
-
Save parzibyte/9633c17e56b8c2288703ebbd70a0ce0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ciclo del 0 al 9 | |
// usando un rango | |
// https://parzibyte.me/blog/2019/07/05/rangos-kotlin/ | |
val rangoDeNumeros = 0..9 | |
for (numero in rangoDeNumeros) { | |
println(numero) | |
} | |
// Recorrer un arreglo | |
// Más sobre arreglos: https://parzibyte.me/blog/2019/07/02/arreglos-kotlin/ | |
val nombres = arrayOf("John Galt", "Dagny Taggart", "Hank Rearden") | |
for (nombre in nombres) { | |
println(nombre) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment