/**
 * In this exercise, you are a nurse and you need to determine whether a patient's condition is critical based on their symptoms. You need to write a function that takes two symptoms as arguments and returns true if the patient's condition is critical, and false otherwise.
 *
 * @param symptom1 The first symptom of the patient (e.g., "high fever").
 * @param symptom2 The second symptom of the patient (e.g., "unconsciousness").
 * @return true if the patient's condition is critical, false otherwise.
 */
fun checkPatientCondition(symptom1: String, symptom2: String): Boolean {

    return when {
        symptom1 == "high fever" && symptom2 == "unconsciousness" -> true
        symptom1 == "difficult breathing" && symptom2 == "severe chest pain" -> true
        symptom1 == "severe headache" && symptom2 == "vomiting" -> true
        symptom1 == "bleeding" && symptom2 == "pale skin" -> true
        else -> false
    }
}
/**
 * In this exercise, you are a nurse and you need to determine whether a patient's condition is critical based on their symptoms. You need to write a function that takes two symptoms as arguments and returns true if the patient's condition is critical, and false otherwise.
 *
 * @param symptom1 The first symptom of the patient (e.g., "high fever").
 * @param symptom2 The second symptom of the patient (e.g., "unconsciousness").
 * @return true if the patient's condition is critical, false otherwise.
 */
fun checkPatientCondition(symptom1: String, symptom2: String): Boolean {
/**
 * In this exercise, you are a nurse and you need to determine whether a patient's condition is critical based on their symptoms. You need to write a function that takes two symptoms as arguments and returns true if the patient's condition is critical, and false otherwise.
 *
 * @param symptom1 The first symptom of the patient (e.g., "high fever").
 * @param symptom2 The second symptom of the patient (e.g., "unconsciousness").
 * @return true if the patient's condition is critical, false otherwise.
 */
fun checkPatientCondition(symptom1: String, symptom2: String): Boolean {

    return when {
        symptom1 == "high fever" && symptom2 == "unconsciousness" -> true
        symptom1 == "difficult breathing" && symptom2 == "severe chest pain" -> true
        symptom1 == "severe headache" && symptom2 == "vomiting" -> true
        symptom1 == "bleeding" && symptom2 == "pale skin" -> true
        else -> false
    }
}