-
-
Save parzibyte/c913869369ef9c6feaf99d5e5eb2f816 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
// Podemos avanzar por pasos, y sí, usar negativos | |
val otroRangoDeNumeros = (-10..100).step(2) | |
for (numero in otroRangoDeNumeros) { | |
println("Número en pasos de 2: $numero") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment