Go Arithmetic Operators Check Whether a Number is Even or Odd
package main/*from w w w. j a va 2 s.co m*/ import "fmt" func main(){ fmt.Print("Enter number : ") var n int fmt.Scanln(&n) if(n%2==0){ fmt.Println(n,"is Even number") }else{ fmt.Println(n,"is Odd number") } }