/**
 * This function helps a firefighter make a decision based on the presence of fire, smoke, and danger level.
 *
 * @param fire a boolean indicating whether there is fire present or not
 * @param smoke a boolean indicating whether there is smoke present or not
 * @param dangerous a boolean indicating the level of danger present or not
 * @return a string indicating the firefighter's decision based on the given conditions
 */
fun firefighterDecision(fire: Boolean, smoke: Boolean, dangerous: Boolean): String {

    return when {
        fire && smoke -> "Evacuate immediately!"
        fire || smoke -> "Assess the situation carefully."
        !dangerous -> "Monitor the area for potential hazards."
        else -> "Wait for further instructions."
    }
}
/**
 * This function helps a firefighter make a decision based on the presence of fire, smoke, and danger level.
 *
 * @param fire a boolean indicating whether there is fire present or not
 * @param smoke a boolean indicating whether there is smoke present or not
 * @param dangerous a boolean indicating the level of danger present or not
 * @return a string indicating the firefighter's decision based on the given conditions
 */
fun firefighterDecision(fire: Boolean, smoke: Boolean, dangerous: Boolean): String {
/**
 * This function helps a firefighter make a decision based on the presence of fire, smoke, and danger level.
 *
 * @param fire a boolean indicating whether there is fire present or not
 * @param smoke a boolean indicating whether there is smoke present or not
 * @param dangerous a boolean indicating the level of danger present or not
 * @return a string indicating the firefighter's decision based on the given conditions
 */
fun firefighterDecision(fire: Boolean, smoke: Boolean, dangerous: Boolean): String {

    return when {
        fire && smoke -> "Evacuate immediately!"
        fire || smoke -> "Assess the situation carefully."
        !dangerous -> "Monitor the area for potential hazards."
        else -> "Wait for further instructions."
    }
}