package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) fmt.Print("Enter a whole number: ") text, _ := reader.ReadString('\n') n, _ := strconv.Atoi(strings.TrimSpace(text)) if n%2 == 0 { fmt.Println("even") } else { fmt.Println("odd") } }