18 lines
237 B
Go
18 lines
237 B
Go
|
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")
|
||
|
}
|
||
|
}
|
||
|
}
|