mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 02:16:48 +08:00
update book code
This commit is contained in:
13
eBook/exercises/chapter_9/main_oddeven.go
Executable file
13
eBook/exercises/chapter_9/main_oddeven.go
Executable file
@@ -0,0 +1,13 @@
|
||||
// test_oddeven.go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"./even/even"
|
||||
)
|
||||
|
||||
func main() {
|
||||
for i:=0; i<=100; i++ {
|
||||
fmt.Printf("Is the integer %d even? %v\n", i, even.Even(i))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user