package main import "fmt" func compare(number float64) { if number >= 1 && number <= 10 { fmt.Printf("%v is between 1 and 10\n", number) } else { fmt.Printf("%v isn't between 1 and 10\n", number) } }