1 package util 2 3 import "math" 4 5 func Odd(n int) bool { 6 return math.Mod(float64(n), 2.0) == 1.0 7 } 8
View as plain text