{ float frequency = 146.52; //frequency in MHz if ((frequency >= 144.0) && (frequency <= 148.0)) { printf("You're on the 2 meter band\n"); } else { printf("You're not on the 2 meter band\n"); } }