13 lines
146 B
Plaintext
13 lines
146 B
Plaintext
package main
|
|
|
|
import "fmt"
|
|
|
|
func half(i int) (int, bool) {
|
|
return i / 2, i%2 == 0
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println(half(1))
|
|
fmt.Println(half(2))
|
|
}
|