Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 8, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/573f801847af869b34d2ee0cac12b85c to your computer and use it in GitHub Desktop.
Save parzibyte/573f801847af869b34d2ee0cac12b85c to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
numeros := [...]int {18, 28, 21, 96, 97}
for indice, valor := range numeros {
fmt.Printf("Estamos en el índice %d, y su valor es %d\n", indice, valor)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment