package main
import "fmt"
func main(){
fmt.Println("Enter a number: ")
var i int32
fmt.Scanf("f",%i)
output := i*1
if output%2 == 0{
fmt.Print("even")
}else {
fmt.Println("odd")
}
}
This is my current code. I am trying to print even and odd number based on using the Scanf but this only print out 'Even'.