package main
import "fmt"
func main() {
mp:= map[string]int {
"c": 1,
"cpp": 2,
"java": 3,
"go": 4,
}
for key, value := range mp {
fmt.Println("Key:", key, " Value:", value)
}
}
/*
run:
Key: java Value: 3
Key: go Value: 4
Key: c Value: 1
Key: cpp Value: 2
*/