package main import "fmt" func main() { var numbers []int for i := 0; i <= 10; i++ { numbers = append(numbers, i) } for _, num := range numbers { if num%2 == 0 { fmt.Println("even") } else { fmt.Println("odd") } } }